Hi Corion,
Thanks a lot. Yes, it was happening because the filehandle was advancing as we write and hence any read operation on the file handle was returning a blank value. I moved the filehandle back to the previous line using seek and now it is working perfectly fine.
In reply to Re^2: Clarification on the write read mode of filehandling
by I_love_perl
in thread Clarification on the write read mode of filehandling
by I_love_perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |