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

Re: Multiple Perl version support quandary

Thread Previous | Thread Next
From:
Nicholas Clark
Date:
April 16, 2007 03:51
Subject:
Re: Multiple Perl version support quandary
Message ID:
20070416105138.GD69960@plum.flirble.org
On Fri, Mar 31, 2006 at 11:43:31AM +0100, hv@crypt.org wrote:
> 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 ...)

As of 5.8.4 it dies instead.

Nicholas Clark

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