IT Base of Knowledge’s Weblog

September 8, 2008

Hashes of hashes

Filed under: Perl — itbdc @ 4:17 pm

#!/usr/bin/perl
use strict;
my %toto;
$toto{3}{4} = 'jj';
my $un;
my $deux;

foreach $un (keys %toto) {
foreach $deux (keys %{$toto{$un}} ) {
print $toto{$un}{$deux}."\n";
}
}

Blog at WordPress.com.