candlerb has asked for the wisdom of the Perl Monks concerning the following question:
When I run this, I get:use CGI 'escapeHTML'; print "\n--- take 1 ---\n"; print escapeHTML(`echo abc; echo def; echo ghi`); print "\n--- take 2 ---\n"; print escapeHTML($b = `echo abc; echo def; echo ghi`); print "\n--- take 3 ---\n"; $c = `echo abc; echo def; echo ghi`; print escapeHTML($c);
Tested on:--- take 1 --- abc --- take 2 --- abc def ghi --- take 3 --- abc def ghi
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: backticks/escapeHTML strange behaviour with assignment
by candlerb (Novice) on Nov 29, 2013 at 08:46 UTC | |
|
Re: backticks/escapeHTML strange behaviour with assignment
by boftx (Deacon) on Nov 29, 2013 at 08:47 UTC |