List Info

Thread: Dump arrays/hashes




Dump arrays/hashes
country flaguser name
United States
2007-09-19 07:19:48

Is there any function to nicely dump the contents of an array/hash?
Similar to var_dump or print_r in php? If not, anyone have one they wrote
themselves?

Thanks

------------------------
Ryan Nauman
Business Intelligence
Decision Support
(412) 433-1737

[Non-text portions of this message have been removed]

__._,_.___
.

__,_._,___
Re: Dump arrays/hashes
country flaguser name
United States
2007-09-19 07:32:50

--- In perl-beginner%40yahoogroups.com">perl-beginneryahoogroups.com, Ryan J Nauman <RJNauman...> wrote:
&gt;
> Is there any function to nicely dump the contents of an array/hash?
> Similar to var_dump or print_r in php? If not, anyone have one they
wrote
> themselves?
>
> Thanks
&gt;
> ------------------------
>; Ryan Nauman
&gt; Business Intelligence
> Decision Support
> (412) 433-1737
>
> [Non-text portions of this message have been removed]
>

use Data:umper;

print Dumper (yourArray);
print Dumper (yourHash);

~

__._,_.___
.

__,_._,___
Re: Dump arrays/hashes
country flaguser name
United States
2007-09-19 07:32:57

--- In perl-beginner%40yahoogroups.com">perl-beginneryahoogroups.com, Ryan J Nauman <RJNauman...> wrote:
&gt;
> Is there any function to nicely dump the contents of an array/hash?
> Similar to var_dump or print_r in php? If not, anyone have one they
wrote
> themselves?
>
> Thanks
&gt;
> ------------------------
>; Ryan Nauman
&gt; Business Intelligence
> Decision Support
> (412) 433-1737
>
> [Non-text portions of this message have been removed]
>

use Data:umper;

print Dumper (yourArray);
print Dumper (yourHash);

~

__._,_.___
.

__,_._,___
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )