![]() |
|
Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Literal Source Parameters At Runtimeby tomazos (Deacon) |
on Oct 29, 2007 at 04:53 UTC ( #647786=perlquestion: print w/replies, xml ) | Need Help?? |
tomazos has asked for the wisdom of the Perl Monks concerning the following question: I want to take the literal source code of the parameter of a function call, and use it as a string at runtime. (...in a similiar fashion to the # operator in the context of a macro definition in the C/C++ preprocessor.)
Output:
The C/C++ code would be:
Anyone know how to do something like this in Perl?
Thanks,
Back to
Seekers of Perl Wisdom
|
|