NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
I'm being evil (Score:2)
I've got a bloody good mind to write Break::Mouse which will delete that subroutine if it ever spots that it's been created. And load it into my CPAN-testing machines.
This shows why monkey-patching is generally a bad idea.
package Break::Mouse;
use Time::HiRes qw(setitimer ITIMER_VIRTUAL);
setitimer(ITIMER_VIRTUAL, 1, 1);
$SIG{VTALRM} = sub {
eval 'sub UNIVERSAL::a_sub_not_likely_to_be_here { die("Monkey-patching is bad\n")';
}
Re: (Score:1)
Evil indeed.
So how do we implement blessed without XS? As I said in a sibling comment, Mouse doesn't do this any more, it now just depends on Scalar::Util. But since I just took the code from Scalar::Util, so your package should be named Break::Scalar::Util.
Re: (Score:1)
UNIVERSAL::can( $foo, 'can' )Re: (Score:1)
Re: (Score:1)
Repo URL (Github preferred)? Email address?
Re:I'm being evil (Score:1)
Reply to This
Parent
Re: (Score:1)
Ah.