Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: substitution in $0by Abigail-II (Bishop) |
on Oct 02, 2002 at 13:34 UTC ( [id://202261]=note: print w/replies, xml ) | Need Help?? |
How did you manage to double the content without having
a print statement? Don't just follow the advice of the
people who suggested to use +< in the open.
You probably need it, but you need more too. You cannot
simply read a line, write a line in a file that you have
open for read/write - it will garble your data horribly.
But since your code fragment doesn't show any print statements, I expect your real code is different anyway. Abigail
In Section
Seekers of Perl Wisdom
|
|