I wanted to use Template::Extract today, but found it couldn't handle my template. It turned out that by changing the options to the Template::Parser object that Template::Extract::Compile uses I could get the behaviour I needed. I modified the module so I could pass in my own Template::Parser object.
Thank god it was that simple, because I didn't want to mess with those regexen.
There's a Bug! (Score:1)
Calling UNIVERSAL::isa() [cpan.org] is almost always wrong.
Re:There's a Bug! (Score:2)
Re:There's a Bug! (Score:1)
I said that it stupid people do UNIVERSAL::isa, and after a while I said it again, and on the third time or so he implied that he doesn't like being called stupid...
Either way, he said he'll use the isa function exported from UNIVERSAL::isa directly so that he doesn't need to call Scalar::Util::blessed.
Since I exposed this deep dark secret, now you both have to do it, or else.
Re:There's a Bug! (Score:2)
I don't really like using subsets of Perl only because somebody's black magic mojo can't deal with it (and even more so when I don't want to use that mojo anyway
Re:There's a Bug! (Score:1)
Polymorphism is all about an object adhering to some interface. If it can do that, it's consumers should be happy.
If an object claims it is of some class, then it's impolite (and black magic mojoish, in a way) to interfere with that.
Re:There's a Bug! (Score:2)
The function form of isa() exists to handle things that aren't objects. No matter what we think the world should be like, we know that users do all sorts of wacky things.
I'm not going code a certain way s
Re:There's a Bug! (Score:1)
Some::Class::method($object);
instead of
$object->method;
because $object might be a subclass..
UNIVERSAL::isa is a method that knows to double as a function, but it's still a method..
UNIVERSAL::isa (the module) replaces UNIVERSAL::isa (the subroutine), so no, Test::MockObject can't do the magic on it's own.
Re:There's a Bug! (Score:2)
We'll just have to disagree on this one, and you'll just have to include me with the other stupid module authors. If I have to use Test::MockObject for something, I'll just make the fix to it myself.
Re:There's a Bug! (Score:2)
${}do not usually bother redefining theirisamethod to includeSCALAR.Thanks, see 0.39. (Score:2)
Re:Thanks, see 0.39. (Score:2)
I'm not so concerned about the API as long as I can play with the parser.