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

Re: Multiple Perl version support quandary

Thread Previous | Thread Next
From:
Adam Kennedy
Date:
March 30, 2006 20:10
Subject:
Re: Multiple Perl version support quandary
Message ID:
20060331040959.15968.qmail@lists.develooper.com
John Peacock wrote:
> Yitzchak Scott-Thoennes wrote:
>> Doing *UNIVERSAL::VERSION = sub { ... } doesn't give a mandatory warning
>> for me ??
> 
> Hm, I never thought of trying it that way.  I was doing the more conventional:
> 
> 	package UNIVERSAL;
> 
> 	sub VERSION {}
> 
> I'll make that change...

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 :)

Adam K

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