
FishMonger
Veteran
Nov 20, 2009, 6:13 AM
Views: 425
|
|
Re: [7stud] problem in error handling.
|
|
|
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)
|