Don't ask to ask, just ask | |
PerlMonks |
Re^2: IO::Tee problem (Well, problem with my brain, anyway)by pobocks (Chaplain) |
on Mar 23, 2009 at 16:26 UTC ( [id://752648]=note: print w/replies, xml ) | Need Help?? |
The problem is that the input file triples, while the output file doubles. As far as I can tell, I'm slurping the entire file (previous to any additions), and then foreaching over a simple array and printing the file once. I should get a doubled copy in the input file, and a single copy in the output file. I've checked (with a print statement) and @lines contains only a single copy of the input file.
for(split(" ","tsuJ rehtonA lreP rekcaH")){print reverse . " "}print "\b.\n";
In Section
Seekers of Perl Wisdom
|
|