Closed p5pRT closed 21 years ago
This short piece of code perl -e 'sub { sub $a; open my $f; die; }' produces Bus error
If you change anything 'sub'\, 'open'\, 'my' or 'die' you get a syntax error (and sometimes a bus error).
Robin
On Thu\, Feb 20\, 2003 at 10:52:47AM -0000\, Robin Barker wrote:
This short piece of code perl -e 'sub { sub $a; open my $f; die; }' produces Bus error
If you change anything 'sub'\, 'open'\, 'my' or 'die' you get a syntax error (and sometimes a bus error).
it gives the following in bleedperl:
$ ./perl -e 'sub { sub $a; open my $f; die; }' Illegal declaration of anonymous subroutine at -e line 1.
IIRC correctly\, this was fixed by the patch that handled "sub;".
-- "You're so sadly neglected\, and often ignored. A poor second to Belgium\, When going abroad." Monty Python - "Finland"
@rspier - Status changed from 'new' to 'resolved'
Migrated from rt.perl.org#21316 (status was 'resolved')
Searchable as RT21316$