|
|
 |
perl-win32-users
Re: display a hash...
by $Bill Luebkert other posts by this author
Aug 1 2004 2:48AM messages near this date
view in the new Beta List Site
display a hash...
|
RE: display a hash...
bruce wrote:
> hi...
>
> i have a hash from the mysql_connect... i'd like to know if there is a quick
> way to examine/display the contents of a hash...
>
> i get -->>dbh = DBI::db=HASH(0x81a15e8)
You can use Data:Dumper for just a raw look at the entire structure.
You can foreach over the keys or values in a loop if you know what
you want and it's a simple hash.
foreach (keys %hash) {
print "$_ = $hash{$_}\n";
}
--
,-/- __ _ _ $Bill Luebkert Mailto:dbecoll@[...].net
(_/ / ) // // DBE Collectibles Mailto:dbe@[...].com
/ ) /--< o // // Castle of Medieval Myth & Magic http://www.todbe.com/
-/-' /___/_<_</_</_ http://dbecoll.tripod.com/ (My Perl/Lakers stuff)
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
bruce
$Bill Luebkert
bruce
$Bill Luebkert
|
|
|
 |
|