in reply to first elements in array, split join and sort problem

It looks like one of your $lines is an uninitialized value. You could put in your foreach loop:

next unless $line;

But that's just ignoring the problem, not fixing it. But since we can't see sample data, it's hard to analyze WHY its uninitialized.

--
perl: code of the samurai

Replies are listed 'Best First'.
Re: Re: first elements in array, split join and sort problem
by alexiskb (Acolyte) on Sep 27, 2002 at 13:34 UTC
    a section of data... thank you..
    -25,AAR ,1303.000,00,1328.000 0,ABO ,5.575,00,5.575 36,ABS ,1243.000,00,1207.000 0,ABY ,122.500,00,122.500 -0.1,ACBD ,3.050,00,3.150 -1.5,ACG ,70.000,00,71.500 -20,ACI ,2459.000,00,2479.000 0,ACID ,4.250,00,4.250 -8,ACO ,1869.000,00,1877.000