Just another Perl shrine | |
PerlMonks |
auto-escaping??by goonfest (Sexton) |
on Dec 13, 2001 at 01:42 UTC ( [id://131424]=perlquestion: print w/replies, xml ) | Need Help?? |
goonfest has asked for the wisdom of the Perl Monks concerning the following question:
I don't know if I gave this a correct title or not, but this is what I want to do. Let's say I have code as follows:
I want my output to be: $var1 + $var2 3 or better yet: var1 + var2 3 What I am looking for is an existing Perl function and/or module and/or method that will, what I term, 'auto-escape' the value of any variable I pass to it, OR take it's literal contents, and if possible, get rid of any dollar-signs or brackets or braces. This is a simple example. My application would require auto-escaping of some more complex data structures, such as array and hash values. Thanks in advance for your help. I'm trying to comb the archives, but again, I don't know what this is officially called. "Be proud, be a Goon"
Back to
Seekers of Perl Wisdom
|
|