in reply to Hash question
You can assign values directly using this syntax:
$hash{'somestring'}[0] = 13; $hash{'somestring'}[1] = 24;
To print the data out you can eihter use Data::Dumper or do it by hand (useful if you need to get the data for some particular use of yours):
foreach my $k(keys %hash) { print "Key: $k\n"; for my $i(0..@{$hash{$k}}-1) { print " - ".$hash{$k}[$i]."\n"; } }
Michele.
|
|---|