Perl: the Markov chain saw | |
PerlMonks |
Re: read from a file and write into the same fileby goibhniu (Hermit) |
on Mar 03, 2008 at 19:49 UTC ( [id://671704]=note: print w/replies, xml ) | Need Help?? |
I think OP's problems were sufficiently pointed out. I was wondering if lexical file handles (open my $fh vs. open FILE) might be useful. What I found was that I successfully separated the input filehandle pointer from the output filehandle pointer, but the input filehandle stopped at the original eof instead of moving on through the new file contents. Could some wiser monks explain that to me?
#my sig used to say 'I humbly seek wisdom. '. Now it says: use strict; use warnings; I humbly seek wisdom.
In Section
Seekers of Perl Wisdom
|
|