Just another Perl shrine | |
PerlMonks |
Re^3: Not able to replace to directory pathsby Eliya (Vicar) |
on Mar 10, 2011 at 23:26 UTC ( [id://892566]=note: print w/replies, xml ) | Need Help?? |
Maybe you should close $P4DIFF before you open the associated file? Depending on how much you've written, the IO buffer (size 4k) might not have been flushed yet, so the file behind $DATA could be empty. In other words, you'd get EOF with the loop quitting right away... This doesn't print anything (i.e. while loop not entered):
while if you uncomment the close, you'd get:
In Section
Seekers of Perl Wisdom
|
|