http://www.perlmonks.org?node_id=995294


in reply to Converting scalar value to hash

Hi, I have used
my %real_hash = ( 'response' => {'result' => $results} ); %real_hash = Dumper(%real_hash); $r->print( %{real_hash} );
to print the value. Is there any optimized code other than this??

Replies are listed 'Best First'.
Re^2: Converting scalar value to hash
by Anonymous Monk on Sep 24, 2012 at 06:18 UTC

    to print the value. Is there any optimized code other than this??

    For what, what are you trying to do? What do you think that code accomplishes?