good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Variable Interpolation Interpolationby dpatrick (Scribe) |
on Mar 20, 2002 at 19:13 UTC ( [id://153088]=perlquestion: print w/replies, xml ) | Need Help?? |
dpatrick has asked for the wisdom of the Perl Monks concerning the following question:
Fellow Monks,
I humbly bring before you a piece of code that I have been looking at for about the past hour:
What I'm trying to do is interpolate $f into $fromQuery::$f so that we end up with $fromQuery:foo if $fromQuery::foo exists. Does anyone know how this could best be handled? As an aside, the fromQuery namespace comes from the CGI::import_names object method but that's not really that important. dpatrick - I think scsh is cool. Open Sourceror, Perlmonk http://perlmonk.org/~dpatrick
Back to
Seekers of Perl Wisdom
|
|