<?xml version="1.0" encoding="windows-1252"?>
<node id="38864" title="RE: Data::Dumper (Adam: Sample Usage)" created="2000-10-27 19:00:43" updated="2005-08-14 21:25:22">
<type id="11">
note</type>
<author id="9135">
Adam</author>
<data>
<field name="doctext">
I'm always forgeting the way to get Data::Dumper to print a hash and put the name of the hash in-place of the "$VAR". So this is as good a place as any to stick it where I can find it quickly, and other people can see an example usage.
&lt;code&gt;
use strict;
use Data::Dumper;
my %hash = ( 'some' =&gt; 'stuff' );
print Data::Dumper-&gt;Dump([\%hash], ["hashname"]), $/;
&lt;/code&gt;</field>
<field name="root_node">
31714</field>
<field name="parent_node">
31714</field>
</data>
</node>
