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

Re: Multiple Perl version support quandary

Thread Previous | Thread Next
From:
hv
Date:
March 31, 2006 02:35
Subject:
Re: Multiple Perl version support quandary
Message ID:
200603311043.k2VAhVb02272@zen.crypt.org
Adam Kennedy <cpan@ali.as> 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 ...)

Hugo

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About