
FishMonger
Veteran
Nov 20, 2009, 6:13 AM
Post #5 of 5
(426 views)
|
|
Re: [7stud] problem in error handling.
[In reply to]
|
Can't Post
|
|
Can system() cause an error? Since system is a built-in function, if it "causes" an error, then your Perl installation is corrupt. The adjustment I made compares the return code of the system call to 0 and if they are not equal, then the command being executed failed, not Perl's system function. See `perldoc -f system` http://perldoc.perl.org/functions/system.html
(This post was edited by FishMonger on Nov 20, 2009, 6:14 AM)
|