Hue-Bond has asked for the wisdom of the Perl Monks concerning the following question:
I've discovered this while obfuscating. While open behaves well with $!:
BEGIN { *! = 1; open my $fd, 'nonexistent'; print "$!\n"; } Use of uninitialized value in concatenation (.) or string at - line 1.
eval isn't so forgiving:
BEGIN { *@=1; eval '1' } Segmentation fault
Or maybe it's not a problem with eval but with $@:
BEGIN { *@=1; die 'kk' } Segmentation fault
Is this a perl bug?
--
David Serrano
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: eval segfaults when $@ isn't writable
by Zaxo (Archbishop) on Jul 04, 2006 at 01:59 UTC | |
by Hue-Bond (Priest) on Jul 04, 2006 at 10:22 UTC | |
by Zaxo (Archbishop) on Jul 04, 2006 at 15:31 UTC | |
by Hue-Bond (Priest) on Jul 04, 2006 at 15:42 UTC | |
|
Re: eval segfaults when $@ isn't writable
by gellyfish (Monsignor) on Jul 04, 2006 at 11:02 UTC | |
|
Re: eval segfaults when $@ isn't writable
by hv (Prior) on Jul 04, 2006 at 11:16 UTC |