Sudarshan Raghavan wrote:
Yes, @data is just an array not an array of arrays. Does this do what you want?

# CODE START #
my @data;
while (<MYFILE>) {
    my @info = split;
    push (@data, ["$info[0] $info[1]", @info[2..$#info]]);
}
# CODE END #

I'll change my code to see. But it certainly looks complicated.



You might also want to take a look at the Data::Dumper module to make sure your array of arrays is formed correctly.
perldoc Data::Dumper




Thanks for the pointers..

Edmund


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to