in reply to qx and $!
A comparison on how to run external programs and get meaningful errors from them:
--
Regards,
Helgi Briem
hbriem AT f-prot DOT com
print qx(date) or die "Cannot run date:$!\n"; system (date) == 0 or die "Cannot run date:$?\n";
--
Regards,
Helgi Briem
hbriem AT f-prot DOT com
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: qx and $!
by ikegami (Patriarch) on Oct 29, 2006 at 20:19 UTC |
In Section
Seekers of Perl Wisdom