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.
In reply to Re: Sourcing another Scripts using perl script
by choroba
in thread Sourcing another Scripts using perl script
by farha89
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |