There's more than one way to do things | |
PerlMonks |
Re: use Fatal ':void' vs. $!by rblasch (Monk) |
on Jun 13, 2006 at 14:38 UTC ( [id://555055]=note: print w/replies, xml ) | Need Help?? |
Consider this example.
The output is as follows.
$! doesn't seem to get modified. Taking a look at Fatal.pm, one sees the following at about line 121:
$" and $! are localized in the replacement subroutine, open in this example. Removing above line, and running the example again yields the following.
This seems to be the desired outcome. I don't use Fatal, so I can't tell if the localized $! is a bug or a feature.
In Section
Seekers of Perl Wisdom
|
|