Time for your 3rd Quarter Update! Are you in the running for the 6th Annual Expert Awards? Click the link to find out.

Third Quarter Hot Shots
 

Having problems asking a question? Have a general question about Experts Exchange? Let us know!

 
Time Tested Perl Solutions: 1 - 25 of 1903
 
Hi, i would like to convert a date format into unix timestamp. I searched the whole web but did not find anythin yet. Any sollutions?? tnahx a lot
Hi, I am using the Net::Telnet module and calling $telnet->cmd($command) to invoke a process on a remote 2K machine, from a shell script on linux. The process is invoked fine but the 'cmd' co...
I have this in my code $sql = "INSERT INTO `contractProducts` (`clientId`,`productId`,`productStatus`,`productBTW`,`productPaymentperiod`,`productRef`,`productDescription`,`productPrice`,`p...
I saw something about switch statements, so I tried one.  But it's not working.  Do you know what's wrong? chomp( my $score = <STDIN> ); switch( $score ) {     case [90..100] { print "...
I want to pre-configure a software package that people download from a webserver. For this I'd like to preset some strings inside a binairy application file. Basically what I need is a Perl...
I'm trying to return an array of "shared" members between two arrays (strings). Now my subroutine seems to work, but I can't read the return array. I suspect I'm passing a pointer to an ...
Anyone able to help me? i've got a function in perl which trims spaces (all of them) in a given string(=argument) which looks like : sub trim {    my($string)=@_;    for ($string) {      ...
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...
Let say I have "12345" store in $str. How do I tell how many chars are in $str ?
I have a 4 byte string which I would like to convert to a integer. I'm reading the data from a file and the file contains 4 bytes for the ID number. So I've extracted the 4 bytes as text into ...
I have a Perl script with these commands: $prog = <<'EOF'; ..email code ...log code EOF What does this do? Where is it pulling data in from when it says <<EOF?
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/...
Hi. I converted my perl script to EXE usng perl2exe. Now when I double click on my exe it runs great. I am also printing error messages in that. But as soon as the execution gets over , the w...
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 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...
How to run Perl script on Windows XP?
The attached code produces the following output:    Excel results:    Standard Deviation  11.03035112    Skewness             0.363338937    Kurtosis            -0.070497874    My 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...
Hello, Briefly, i have a list of comme files types i accept for upload with: @fichiers_permis      = ('tar\.gz','zip','tar');   then i generate my regular expression: foreach $type (@fich...
Hello, I currently have a working perl script that connects to a CSV list of Cisco devices and excecutes commands. The problem I have is that some of the devices are SSHv1 and SSHv2 which a...
I've a Perl script working perfectly and now I must add: use strict; at the beginning of the script in order to run it correctly in a new server. I get an error: Bareword "break" n...
I'm using a perl script to time things with code like $startmain=time; at the beginning and at the end of what I want to time.  Time seems to be limited to a minimum value of seconds, while I ...
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...
While reading STDIN I need to be able to break out of the while loop and stop the STDIN from reading the rest of the file if a condition is met. This has to be done from an if statment imbedde...
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...