CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [7stud] problem in error handling.: Edit Log



FishMonger
Veteran / Moderator

Nov 20, 2009, 6:13 AM


Views: 586
Re: [7stud] problem in error handling.


In Reply To
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)


Edit Log:
Post edited by FishMonger (Veteran) on Nov 20, 2009, 6:13 AM
Post edited by FishMonger (Veteran) on Nov 20, 2009, 6:14 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives