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: 26 - 50 of 2190
 
Hi, I want to set a timer that will simply keep on doing something with a few seconds in between. I tried the following, but it simply exists while the perl program should keep "printing t...
I am a total newbie to PERL and could use some help.  I am using ActiveState PERL on XP.  I have files that are being ftp'ed/downloaded to c:\infilesA with names like b20031223.dat, c20031223...
In the Perl code below I'm removing carriage return characters, but I need to also remove blank lines. #!/opt/perl/bin/perl open(IN,"InputFile.txt") || die("Can't open file"); open(OUT,...
I am trying to get this perl script to read file from a folder.  I keep getting the following error.  Script at bottom. C:\>Perl -w C:\PerlScripts\PerlParserForEdgar.pl C:/PerlScripts/...
I'm trying to concatenate 2 arrays. The catch is that I'm trying to concatenate the elements. like the following my @array = qw/one two three four/; my @array2 = qw/a b c d/; I want the...
I have this type of data repeated over 100 times that I need to extract and write to a .csv file. (Just the numbers not the headers)         CAUCPSCT               KEY (CELL_NUMBER)     ...
I want to extract a perl module download from CPAN. I have downloaded the file, double clicked on the .tar.gz file extension and the (not impressive) Vista OS asks me what program I want to r...
I'm trying to get this part of a perl script to work. $excludezone = "com\.ru"; if($domain2=~ m/\\$exclude_zone/ ) {    print "sorry $exclude_zone tld is not allowed"; } I basically...
Hi Experts,    I am using the following piece of code to read a CSV file,      open CSV, "A:/Auto.csv" or die "Can not open Auto.csv $!\n";      %files=map/(\S+),\s*(\S+)/g,<CSV>;      close CSV;    ...
Hi, Can someone give me some decent instructions on how to install the PadWalker portion of Epic when using Eclipse? I have found some examples, but there must be a simple set of steps s...
This is close, but it deletes everything =). $BACKUP_DIR = "/var/www/backup"; # Read directory (ignoring . and ..) opendir(DIR,"$BACKUP_DIR") || die "opendir $BACKUP_DIR failed"; @file...
I would like to send an email from a perl script. This email should have a message body and also attach a file. This is what I am currently trying. $mail_command = "uuencode $filename $fil...
How do you go about getting and setting environment variables within a perl script?
I need to read the contents of a text or xml file and convert all lower case letters in the contents of the file to upper case. Is there a simple way using Perl that I could accomplish this.
I have an output file that is created with a Perl script that I want to align the data into readable columns.  The part of my script that does this is below: printf OUT "%s          %s     ...
The attached code produces the following output:    Excel results:    Standard Deviation  11.03035112    Skewness             0.363338937    Kurtosis            -0.070497874    My r...
Hi Experts, How do I get a text file into an array with three columns. The text is separated with tab and looks like: ID123   ref456   box789 ID124   ref456   box789 ID125   ref456   box78...
I have two files fileA and file B with following contents fileA: aaple tomato orange pear fileB: tomato cucumber radish mango I need a code that will compare the two files and p...
I'm moving some stuff to a new server and I'm getting this error: DBI connect('okcdev00','xxxx',...) failed: ERROR OCIEnvNlsCreate (check ORACLE_HOME and NLS settings etc.) at /u/unilocal/a...
help writting a perl script to sftp or scp files.. I have a Solaris server that is use as a Syslog server.  Now, I would like to start storaging files in a  Windows environment since these fi...
The program is as follows: # file name : killChild.pl use POSIX ":sys_wait_h"; use strict; my $etime = time + 1; my $pid; sub sigChild {      print "in the signal handler\n"; } ...
how can i pass an argument to perl script when i call it, for example when a link is clicked it goes to a certain url , but i want the address  to remain the same so i thought if the site has ...
I have an ascii list of about 13,000 opt-in email addresses. Each email address is on a separate line. I need a browser based perl script that will help me extract the aol, hotmail and y...
I'm on a FC3 box with DBD-ODBC-1.16, DBI-1.605, unixODBC-2.2.9-1 , freetds-0.82 and perl 5.8.5.  I'm struggling on connect Perl on Linux to Microsoft SQL Server 2000.  I can successfully acces...
I am working on a Perl script that will logon to remote server and check if files exist on the hard driver. I am new to Perl scripting, but so fare I got the script to check the files on the ...