develooper Front page | perl.perl5.porters | Postings from March 2006

Re: Multiple Perl version support quandary

Thread Previous | Thread Next
March 31, 2006 02:35
Re: Multiple Perl version support quandary
Message ID:
Adam Kennedy <> wrote:
:And for those of you playing at home, the trick of mucking around with 
:the symbol table by replacing entire *things, instead of just your 
:$thing, or &thing, is a good way of getting past ALL SORTS of nasty 
:error checking.
:Like replacing the subroutine you are currently in, while you are 
:running it :)

This gives a SEGV at least from v5.8.1 to v5.8.3:
  perl -e 'sub b { my $a; *b=\&c; c() } sub c { die } b()'

(My work code still has a comment to that effect ...)


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About