note
johngg
<p>Further to what [roboticus] [id://1214146|said], you can use [mod://Data::Dumper]<c>->Dump()</c> or its faster C-coded equivalent <c>->Dumpxs()</c>, which are not exported by default, to obtain a perhaps clearer output. This is more useful if inspecting multiple variables in one go.</p>
<code>
johngg@abouriou ~/perl/Monks $ perl -Mstrict -Mwarnings -MData::Dumper -E '
my %hash = ( Name => q{Fred}, Age => 28, Sex => q{M} );
print Data::Dumper->Dumpxs( [ \ %hash ], [ qw{ *hash } ] );'
%hash = (
'Sex' => 'M',
'Age' => 28,
'Name' => 'Fred'
);
</code>
<p>I hope this is of interest.</p>
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-401112">
<p>Cheers,</p><p>JohnGG</p>
</div></div>
1214143
1214143