in reply to dumping variables automatically with their name?
I use Data::Dumper->Dump( ARRAYREF, ARRAYREF ). You have to pass in the name, but it gives you what you're asking for:
outputs:use warnings; use strict; use Data::Dumper; my @data = (qw(foo bar bazz)); print Data::Dumper->Dump([\@data], ["data"]);
$data = [ 'foo', 'bar', 'bazz' ];
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: dumping variables automatically with their name?
by LanX (Saint) on Mar 31, 2014 at 19:48 UTC |
In Section
Seekers of Perl Wisdom