Advertisement

Experts Exchange is proud to recognize the top Experts of 2008. Alter egos aside, these Experts are technological superheroes!

 

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

 
Time Tested Perl Solutions: 26 - 50 of 1180
 
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...
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...
Hi there, having a problem with perl. I get this error when trying to run any perl script. ### Can't locate strict.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.0/i686-linux /usr/...
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 am new to perl,cgi  I have installed perl 5.6 and when i run a test cgi script i am getting the following.... Can't locate DBI.pm in @INC (@INC contains: C:/perl/lib C:/perl/site/lib .) a...
I use the following regex to make every word in a string to make all words have first character uppercase. $str="JB morGan & CO"; $str=uc($str); $str=~ s/(\w+)/\u\L$1/g; in this exampl...
I am trying to get 3 batch files to run in parallel. I am using perl with system commands:      if (-e $Path . $batchs1 && -e $sPath . $batch2 && -e $Path . $batchs3 ){           system($Path . $batch...
Hi all this is my first question on this board. I have a data log file which needs splitting. the data file consists of the following data: Fri Nov 30 16:52:25 2007 | <hostname> | <ip_addre...
Given two dates like the following Feb-14-07 18:20:11 Mar-03-07 20:32:19 how can I calculate the number of days (with decimals!) between the first an d the second?
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...
I have this in my code $sql = "INSERT INTO `contractProducts` (`clientId`,`productId`,`productStatus`,`productBTW`,`productPaymentperiod`,`productRef`,`productDescription`,`productPrice`,`p...
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...
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...
when i do $temp = `grep ooo file.txt` i print $temp; /v/apache/conf/vhost.web1:       include conf/oos_test.conf /v/apache/conf/vhost.web1:       include conf/oos_apps.conf /v/apache...
I need to write a script in Perl that uses SFTP and SSH, for transfering files between windows and unix OS.  The ssh on the windows is Cygwin open ssh.   I  am currenlty working on buliding th...
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/...
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, 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...
How to run Perl script on Windows XP?
I have very big formatted result set and I want to store all that in a 2D array in my perl script. In the end I want to print just the array. Are there 2D arrays in perl ? How do I use a 2D ar...
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     ...
if I have a perl script for example test.pl in Windows XP, how do I run the script by just typing "test.pl <arg1> <arg2>" in the command line instead of having to type "perl test.pl <arg1> <ar...
Hi I'm using an oracle db and i prepare and execute a statement that may return any number of rows. ... prepare_statement_differences(); $differences_sql -> execute; while(@differences ...
I'm using the following Perl script to create a spreadsheet from a text file. Basically the script works, but it's inserting a little square(carriage return character) as part of the $ACTIVITY...