develooper Front page | perl.perl5.porters | Postings from April 2007

Re: Multiple Perl version support quandary

Thread Previous | Thread Next
Nicholas Clark
April 16, 2007 03:51
Re: Multiple Perl version support quandary
Message ID:
On Fri, Mar 31, 2006 at 11:43:31AM +0100, wrote:
> 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 ...)

As of 5.8.4 it dies instead.

Nicholas Clark

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