in reply to
segregating data from one file to many files
my $line=<FH>
reads a line from the current position in the file. It doesn't start reading from the start of the file once you've reached the end. Reopen the file or
seek
to the beginning.
Comment on
Re: segregating data from one file to many files
Select
or
Download
Code
Replies are listed 'Best First'.
Re^2: segregating data from one file to many files
by
patric
(Acolyte)
on May 08, 2009 at 18:50 UTC
thank you :) i opened the file inside the for loop. It works well now. Thanks once again :)
[reply]
In Section
Seekers of Perl Wisdom