It dawned on me that asking "is this thing really a hashref?" seems like poor coding -- we are demanding to know something about the implementation of an object. Instead, we should only need to ask things about the object's interface, like "can I use this thing like a hashref?"Well you're wrong. HTML::Template deals with data (perl primitives), not objects (even though it'll take a hashref based one).
In reply to Re: "Is it a hashref" vs "Can I use it like a hashref?"
by Anonymous Monk
in thread "Is it a hashref" vs "Can I use it like a hashref?"
by blokhead
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |