in reply to This engine burns regular

Given that package Regexp has only one method, you could also just override that method:
qr;;for qq$Just another Perl hacker,\n$;package Regexp;sub DESTROY{print}
Or you could override all the methods in the package (which amounts to the same thing), although that's longer than the original code by a character:
qr;;for qq$Just another Perl hacker,\n$;package Regexp;BEGIN{$_=sub{print}for values%{__PACKAGE__.::}}

Replies are listed 'Best First'.
Re^2: This engine burns regular
by davido (Cardinal) on Jun 14, 2005 at 04:08 UTC