I doubt you really want to do it the way you describe ... removing all the \n before doign anything else. Much better to process one line at a time, unless you really need access tot he whole file.
open FILE, "<", $filename; while(<FILE>) { chomp; # mode processing goes here }
In reply to Re: Strip line feeds from file
by TomDLux
in thread Strip line feeds from file
by mikevanhoff
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |