The stupid question is the question not asked | |
PerlMonks |
Re: How can one determine context within FETCH?by Sidhekin (Priest) |
on Oct 01, 2007 at 13:15 UTC ( [id://641877]=note: print w/replies, xml ) | Need Help?? |
You can probably use overload to overload the use of your objects(!) as arrayrefs and hashrefs. See the cookbook section on "Two-face references" for an example. However, your (whole) array context will need to look like this:
(Which to my mind is a plus; having a hash element lookup return a list is at best just too surprising and at worst downright abuse of syntax. YMMV.)
print "Just another Perl ${\(trickster and hacker)},"
In Section
Seekers of Perl Wisdom
|
|