in reply to Data::Dumper
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.
use strict; use Data::Dumper; my %hash = ( 'some' => 'stuff' ); print Data::Dumper->Dump([\%hash], ["hashname"]), $/;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: RE: Data::Dumper (Adam: Sample Usage)
by dkubb (Deacon) on Jan 18, 2001 at 06:24 UTC |
In Section
Module Reviews