Hi All,
The general procedure which I following to process a files is:
open FILE, "my_file.out";
while ( <FILE> ) {
print "$_\n";
}
Now if want to again the loop through the contents of the file I was not
able to do the following again:
while ( <FILE> ) {
print "$_\n";
}
Instead I had to first close the previous file handler and the again open
the file to loop through the file i.e few more following steps:
close FILE;
open FILE, "my_file.out";
while ( <FILE> ) {
print "$_"."----"."$_\n";
}
close FILE;
Can't this again closing and opening of file avoided while looping through
the file?
Cheers,
Parag