[Israel.pm] setting $!
Shlomo Yona
shlomo at cs.haifa.ac.il
Mon Jul 19 05:27:06 PDT 2004
On Mon, 19 Jul 2004, Itzik Lerner - Orpak wrote:
> You can do:
>
> sub foo {
> .
> .
> if (fail) {
> my $err;
> *!=*$err;
> $err='some error message';
> return;
> }
> }
>
> But it will destroy $! After this action, so it is good only if you don't
> use $! For anything else.
I don't want to destroy it...
Thanks.
--
Shlomo Yona
shlomo at cs.haifa.ac.il
http://cs.haifa.ac.il/~shlomo/
More information about the Perl
mailing list