SAForkAndTest
Christopher Hicks
chicks at CHICKS.NET
Thu Sep 26 23:14:03 IST 2002
On Thu, 26 Sep 2002, Julian Field wrote:
> I haven't ever looked at Data::Dumper though. What can it do for me?
It really makes nasty data structures easier to debug:
[chicks at chicks chicks]$ cat x
#!/usr/bin/perl -w
use Data::Dumper;
my $x = {
a => 1,
b => 2,
c => 3,
d => 4,
e => [qw(f g h i j k l)],
f => {
m => 5,
n => 6,
o => 7,
p => 8,
q => 9,
},
};
print Dumper($x);
[chicks at chicks chicks]$ perl x
$VAR1 = {
'e' => [
'f',
'g',
'h',
'i',
'j',
'k',
'l'
],
'f' => {
'm' => 5,
'n' => 6,
'o' => 7,
'p' => 8,
'q' => 9
},
'a' => 1,
'b' => 2,
'c' => 3,
'd' => 4
};
--
</chris>
Camels may be nasty beasts, but they're the only way to get through the
desert.
More information about the MailScanner
mailing list