in reply to Building a data structure - %HoH, %HoA?
should be(my $team, my $loc, my $tool, my $amt) = (split /[,]/)[1,2,3,4];
ormy ($team, $loc, $tool, $amt) = (split /[,]/)[0,1,2,3];
my ($team, $loc, $tool, $amt) = split /[,]/;
The index of the first element of an array/list is 0, not 1!
Jenda
Enoch was right!
Enjoy the last years of Rome.
In Section
Seekers of Perl Wisdom