Kellstr has asked for the wisdom of the Perl Monks concerning the following question:
As you can see the md5sum program does execute but $checksum is set to a null value. I have also tried the pwd command with the same result. Any ideas?use Digest::MD5 qw(md5_hex); use warnings; $checksum = 0; $filename = "compress_logs.pl"; $fingerprint = md5_hex($filename); print "$fingerprint Perl Gen\n"; $checksum = `md5sum compress_logs.pl`; print "$checksum: Linux Gen\n"; [root@zzz me]# /usr/bin/perl test.pl b2b0b5ab494414bbbbe6625e247de247 Perl Gen 933be8d9a84230aa8162932102dd0bf0 compress_logs.pl : Linux Gen
Edit: g0n - repaired tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem returning values from external programs
by kyle (Abbot) on May 08, 2007 at 14:56 UTC | |
|
Re: Problem returning values from external programs
by Krambambuli (Curate) on May 08, 2007 at 16:32 UTC |