in reply to Re: The trouble with Perl Idiom
in thread The trouble with Perl Idiom
I think its so you can say stuff like
if (getRef($node)) { ... }
and be sure that $node is now indeed a PM $NODE hashref. As I said, this isn't a technique I would probably employ. I'm sure the Everything folks have their reasons, but to me its an odd routine in the first place.
Oh, i should say, that for a lot of PM methods there are functional wrappers, so where the normal $obj->getRef($node) would be written in htmlcode it would be as a plain getRef() call.
First they ignore you, then they laugh at you, then they fight you, then you win.
-- Gandhi
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: The trouble with Perl Idiom
by chromatic (Archbishop) on Aug 26, 2004 at 20:22 UTC |