Hi,

is there a nicer way to do this ?
I think I should be using map to populate %stuff , but am not sure how to do it.

Martin

#---crap code below
my @head = qw (field1 field2 field3 field4 field5);
while(<FH>) {
my @details = split('\s+',$_,13);
my %stuff = ( $head[0] , $details[0],
$head[1] , $details[1],
$head[2] , $details[2],
etc etc );
# do something with $stuff['field3'} or any of the other fields
}


_________________________________________________________________
Use MSN Messenger to send music and pics to your friends http://messenger.msn.co.uk


Reply via email to