open(IN, '<', 'test.txt'); open(OUT, '>', 'out.txt'); while (<IN>) { s/^\s+//; s/\s+$//; print OUT; print OUT "\n"; } close(IN); close(OUT);
In reply to Re: Text File Parsing.
by Anonymous Monk
in thread Text File Parsing.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |