in reply to Re: Setting $! to custom values
in thread Setting $! to custom values
Please, don't be like the IO::* Modules. Wrong.
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
Nowhere does it say that it's for user errors. And if you set $@ in the middle of your code, you lose the eval error!$@ The Perl syntax error message from the last eval() operato +r. If $@ is the null string, the last eval() parsed and executed correctly (although the operations you invoked may have fa +iled in the normal fashion). (Mnemonic: Where was the syntax er +ror "at"?) Warning messages are not collected in this variable. You c +an, however, set up a routine to process warnings by setting $SIG{__WARN__} as described below. Also see "Error Indicators".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: •Re: Re: Setting $! to custom values
by sauoq (Abbot) on Nov 04, 2003 at 02:50 UTC | |
by hardburn (Abbot) on Nov 04, 2003 at 15:13 UTC | |
|
Re: •Re: Re: Setting $! to custom values
by diotalevi (Canon) on Nov 04, 2003 at 22:28 UTC |