Subject: | perl -w warning if no $PATH env var |
Date: | Tue, 04 May 2010 11:40:44 +1000 |
To: | bug-IPC-Run [...] rt.cpan.org |
From: | Kevin Ryde <user42 [...] zip.com.au> |
With recent debian i386 perl 5.10.1 and IPC::Run 0.89 the program
nopath.pl below run as
perl -w nopath.pl
gets a warning
Use of uninitialized value in split at /usr/share/perl5/IPC/Run.pm line 1191.
where I hoped that if there's no PATH environment variable set (for
whatever strange reason) it would just error out with "not found", which
it does after the warning.
use strict;
use warnings;
use IPC::Run;
delete $ENV{'PATH'};
IPC::Run::run (['echo', 'hello']);
print "done\n";
exit 0;