You may also give a try with Data::Dump, which can emit a nice output in the form of a quoted Perl string with less fuss.
use Data::Dump qw(dump); chomp($code = <IFH>); print dump($code);
Data::Dumper has the advantage of being in the core, but Data::Dump usually install smoothly from CPAN.
In reply to Re^2: sprintf is printing unexepected output
by ferreira
in thread sprintf is printing unexepected output
by thezip
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |