Advertisement

Experts have come up with some helpful tips for getting a solution to your problem fast.

 

Welcome! If you have any general questions about Experts Exchange, feel free to ask me.

 
Time Tested Perl Solutions: 1151 - 1175 of 1748
 
Hi, Does any one know what I did wrong in the following code? The values in the list were not printed, and I got only "HASH(0x506290)". Can anyone please help? Thanks! ------------------ ...
This must be an easy question for a Perl guru, but I don't know how to do it. I want to assign a string of 100 zeros to a string variable $str. How do you do this in Perl?
I'm working on a PERL script, that has to change into multiple directories to do some file processing in UNIX. THe problem that I have is that the chdir command won't work if I give it the nam...
Hi! I'm programming a chatserver in perl. Over the same socket different chatters are to receive the output. Therefore I'm using IO::Socket and IO:Select. But until now I do only have a quite ...
I've been using the Perl crypt function to encrypt password lists.  This meets my needs except for when the passwords exceed 8 characters, since crypt will use only the first 8.  I do not need...
I am designing an HTML optimizer program, and I want to remove all extra unneeded <b> and </b>'s. When $html = <b>foo</b> <b>bar</b> <b>test</b><b>cool</b> <b>foo2</b> <b>bar2</b> A...
I am using nmap::parser to parse the results of an nmap scan.  One thing this module does not provide for is obtaining information about hosts that don't respond to a ping. Nmap reports these ...
I am a perl developer and I recently came accross this error.  It is not a consistent error and I have tried strenuosly to recreate it without success.  If anyone can help here it would be gre...
I may have found a bug in date::manip version 5.54 where the business time function returns an incorrect value. I have changed the configuration in (I only have one) /usr/lib/perl5/vendo...
Hi Perl Experts, I am writting a simple script to auto capture images for me of websites I browse (when I have the script running) Is there a way to read the internet explorers temp dir?...
Hi, I want to automate the calling of an executable (on win32) that asks for the user to type in some input. If I ran it through the command prompt, it would look like: > TheExe.exe > P...
Hi everyone... I have a text file that id like to modify... ------------------------------------------------------------------------------ testing.txt drwxrwxrwx  7 root root    4096 Ju...
I need a Perl script to do the following... 1. I have a collection of 1000000+ audio and video files scattered under a directory called c:\Rawfiles.  I would like to run a Perl script tha...
I am looking to scrape any and all links from a number of HTML files that I have already fetched from the web. (all located in one directory, all named .htm)  I am looking to output the links,...
Here is my code for a previous question I had help with. : #!/usr/bin/perl use List::Util qw(shuffle); @startingdeck = ("A H","2 H","3 H","4 H","5 H","6 H","7 H","8 H",                ...
I'm using a Perl script to connect a syslog-ng server to a MySQL database using pipes. Anything going through my Snort parsing script isn't written to the database until the syslog-ng init scr...
I am able to "scrap" indexes from a web site and output them to a text file. if you execute the code contained in the .txt file attached to this message as: Go to Command Prompt: parse_fi...
Hi, I have wriiten in C and done alot of shell scripting. I am looking for a basic PERL script that does some of the most common functions as a general intro for myself on the language. One w...
Besides sloppy code, I am missing something. reading through eventlog and printing only the errors from yesterday to current time. Getting the below errors. Maybe you can show how to ad...
I get this error message "Undefined subroutine &main::EVENT called at line ...." In this perl code I am calling a subroutine called &EVENT(..) from Exception.pm , but on top of the file I ...
Hi All, I have started writing in perl. it is fascinating. we are using perl 5.8. I need to implement exception handling in my code. I will attach the code below. Need some help and exa...
Trying to learn some perl here. I decided to take on an exercise that requires me to write a perl program to find out the longest word(s) in a text file. I figure what I need is a hash, with t...
Hello,  I need to verify a string from the command line in a PERL script.  I  need to make sure that the string has the following format: ABS <A-Z><A-Z><A-Z> <0-9>.<0-9>.<0-9> <A-Z><number...
I'm using the following script to write out to a text file certain elements from a XML file.  The script works fine except I need to remove part of the string before writing to the text file. ...
Hi there, Hopefully this is trivial for a Perl guru (which I'm not).  Say I have a string, $myString.  It is a long sequence of characters and whitespace.  Can you show me code which I can ...