Just another Perl shrine | |
PerlMonks |
Is there a clever way to interpolate a method?by cosmicperl (Chaplain) |
on Mar 05, 2009 at 00:07 UTC ( [id://748363]=perlquestion: print w/replies, xml ) | Need Help?? |
cosmicperl has asked for the wisdom of the Perl Monks concerning the following question:
Hi All, I only know to methods to achieve this, both seem a bit long winded. Either:- Or:- The latter obviously uses more memory, but is useful if parsing the variable into a lot of strings. Is there a better way I'm unaware of? Lyle Update: my method returned a hash ref, so I ended up with
Back to
Seekers of Perl Wisdom
|
|