Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: escapeHTML & scalar/array context

by Chmrr (Vicar)
on Jul 11, 2002 at 17:36 UTC ( #181087=note: print w/ replies, xml ) Need Help??


in reply to escapeHTML & scalar/array context

Though in general I'd use what Abigail-II suggests, it's worth mentioning that one can also do:

print $q->escapeHTML(Data::Dumper::Dumper([$foo,$bar]));

However, putting it in scalar context seems very much the Right Thing to do.

perl -pe '"I lo*`+$^X$\"$]!$/"=~m%(.*)%s;$_=$1;y^`+*^e v^#$&V"+@( NO CARRIER'


Comment on Re: escapeHTML & scalar/array context
Download Code
Re^2: escapeHTML & scalar/array context
by Aristotle (Chancellor) on Jul 11, 2002 at 19:27 UTC
    ++, it just needs a little bit of extra polish to be perfect: print $q->escapeHTML(Data::Dumper::Dumper [$foo, $bar], [qw(*foo *bar)]);
    ____________
    Makeshifts last the longest.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://181087]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (11)
As of 2014-09-19 09:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (134 votes), past polls