|
|
| laziness, impatience, and hubris | |
| PerlMonks |
RE: Re: problem with print content of fileby chromatic (Archbishop) |
| on Aug 09, 2000 at 03:55 UTC ( [id://26950]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
If you're going to write to the file, you might want to add one or more > characters in the open statement, as appropriate. Opening the file for reading and then trying to write to it won't work very well, either. (Follow the link to open or type perldoc -f open at the command prompt).
I think you might want to close MYFILE in the loop, too. :) local is good, as well, as you don't have to reset $/ manually.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||