pmSwim has asked for the wisdom of the Perl Monks concerning the following question:
This does the job, but now with perl 5.10 there is a warningeval { local $SIG{'__DIE__'} = sub { die $@ }; # do something that may die };
Please, can someone tell me the best way to avoid this. With older perl(s) I've never seen this message in this context of $@.Use of uninitialized value $@ in ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: 5.10 shows uninitialized $@ warning
by ikegami (Patriarch) on May 16, 2008 at 14:43 UTC | |
by pmSwim (Acolyte) on May 16, 2008 at 16:00 UTC | |
by starbolin (Hermit) on May 16, 2008 at 17:14 UTC | |
by pmSwim (Acolyte) on May 16, 2008 at 17:59 UTC | |
by ikegami (Patriarch) on May 16, 2008 at 18:52 UTC | |
|
Re: 5.10 shows uninitialized $@ warning
by Burak (Chaplain) on May 16, 2008 at 14:06 UTC | |
|
Re: 5.10 shows uninitialized $@ warning
by syphilis (Archbishop) on May 16, 2008 at 13:49 UTC | |
by ikegami (Patriarch) on May 16, 2008 at 14:35 UTC | |
by syphilis (Archbishop) on May 16, 2008 at 14:54 UTC | |
by ikegami (Patriarch) on May 16, 2008 at 15:07 UTC | |
by syphilis (Archbishop) on May 16, 2008 at 15:28 UTC | |
| |
by pmSwim (Acolyte) on May 16, 2008 at 14:55 UTC |