|
|
| Come for the quick hacks, stay for the epiphanies. | |
| PerlMonks |
Re: cgi code line messageby rupesh (Hermit) |
| on Jun 06, 2005 at 06:35 UTC ( [id://463863]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Just an exerpt from of $! perldoc perlvar. $! If used numerically, yields the current value of the C "errno" variable, or in other words, if a system or library call fails, it sets this variable. This means that the value of $! is meaningful only *immediately* after a failure: In the above *meaningless* stands for anything: zero, non-zero, "undef". A successful system or library call does not set the variable to zero. If used an a string, yields the corresponding system error string. You can assign a number to $! to set *errno* if, for instance, you want "$!" to return the string for error *n*, or you want to set the exit value for the die() operator. (Mnemonic: What just went bang?) Cheers, Rupesh.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||