in reply to Re: Re: Stripping a seemingly complicated comma-delimited file
in thread Stripping a seemingly complicated comma-delimited file
What you have done there is not what you think. When you assing $file to the <> operator it grabs one line - not every line. Either assign it to an array (@file) which will put each line as an array entry, or even better loop through the file with$file = <HIPORT>;
while my $file(<HIPORT>){ #do stuff }
|
|---|