thewebsi has asked for the wisdom of the Perl Monks concerning the following question:
According to http://search.cpan.org/~markstos/CGI.pm-3.51/lib/CGI.pm#AUTOESCAPING_HTML I should be able to get the current state of CGI::autoEscape(). However, when I try this, it seems to change the state to false (quantum mechanics?):
perl -e 'use CGI; print $CGI::VERSION . "\n" . ( CGI::autoEscape() || 0 ) . ( CGI::autoEscape() || 0 ) . "\n";'Result:
3.51 10
Am I not doing it right, or is this a CGI bug?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Get CGI::autoEscape() state
by wind (Priest) on May 10, 2011 at 21:53 UTC |