in reply to HoH question
#!/usr/bin/perl use strict; use warnings; use Data::Dumper::Simple; my %hash; while(<DATA>){ chomp; my @array = split /\s{2,}/; $hash{$array[0]} = { $array[1] => $array[2] }; } print(Dumper(%hash));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: HoH question
by bobf (Monsignor) on Oct 06, 2005 at 06:11 UTC | |
|
Re^2: HoH question
by cajun (Chaplain) on Oct 06, 2005 at 06:12 UTC | |
by ikegami (Patriarch) on Oct 06, 2005 at 06:27 UTC |