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

Re: Multiple Perl version support quandary

Thread Previous | Thread Next
Adam Kennedy
March 30, 2006 20:10
Re: Multiple Perl version support quandary
Message ID:
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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About