On Oct 22, 12:34 pm, "jl_p...@hotmail.com" <jl_p...@hotmail.com>
wrote:
>
> print eval("my " . Dumper($s)); # prints ☺
>
> (The "my " part is to suppress a warning given because the output's
> "$VAR1" is caught by "use warnings;" and "use strict;". Optionally,
> you may remove that part by using the following lines instead:
>
> # Remove the "$VAR1 = " part with substr():
> print eval( substr(Dumper($s),
);
>
> Either way should work.)
Jason, I just now figured out (by reading "perldoc Data:

umper")
that the "$VAR = " part can be suppressed by setting
$Data:

umper::Terse to 1. Therefore, you could add the following two
lines to the end of your script:
$Data:

umper::Terse = 1; # to suppress "$VAR1 = "
print eval Dumper($s); # prints ☺
and you'll see that, although Dumper may not output text in the form
you want, eval()ling the output text does return it in the form you
want.
-- Jean-Luc