in reply to Sourcing another Scripts using perl script
To check the succes of a system command, compare its return value to zero:
if (0 == system 'ls') { print "Success\n"; } else { print "Error\n"; }
To call a Perl script from a Perl script, you can also use do.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Sourcing another Scripts using perl script
by farha89 (Initiate) on Jan 21, 2014 at 13:09 UTC | |
by choroba (Cardinal) on Jan 21, 2014 at 13:16 UTC | |
by Anonymous Monk on Jan 21, 2014 at 20:40 UTC |