myuserid7 has asked for the wisdom of the Perl Monks concerning the following question:
And here is the error:#!/usr/bin/perl -w use strict; $ENV{'PATH'}=''; # removing this line makes it work open (MAILQ, "/usr/bin/mailq |") or die "open failed: $!\n";
/usr/bin/mailq: basename: No such file or directory /usr/bin/mailq: tr: No such file or directory
Updated Steve_p - changed pre tags to code tags
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: PATH/tr/basename mystery
by Roy Johnson (Monsignor) on Apr 14, 2005 at 11:54 UTC | |
by myuserid7 (Scribe) on Apr 14, 2005 at 12:01 UTC | |
Re: PATH/tr/basename mystery
by gellyfish (Monsignor) on Apr 14, 2005 at 12:03 UTC |