in reply to Re: 5.10 shows uninitialized $@ warning
in thread 5.10 shows uninitialized $@ warning
but this produces the warning in 5.8 too. So I do not really know what introduces the real problem.use warnings;use strict; package What::Ever; $@=undef; $SIG{'__DIE__'} = sub { die "My global die: $@" } ; sub divide { local $SIG{'__DIE__'} = sub { die $@ }; eval { print STDERR 1/$_[0] , "\n"; } } ; { local $@; print STDERR "No exception:\n"; divide(1); print STDERR "Throw...\n"; divide(0); }; warn $@; # with this the warnings are shown // without none
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: 5.10 shows uninitialized $@ warning
by starbolin (Hermit) on May 16, 2008 at 17:14 UTC | |
by pmSwim (Acolyte) on May 16, 2008 at 17:59 UTC | |
|
Re^3: 5.10 shows uninitialized $@ warning
by ikegami (Patriarch) on May 16, 2008 at 18:52 UTC |