As you've undefined $/ and are therefore acting in 'slurp' mode, you'll read the whole file in with your first call to <IN>. Doesn't that make your while loop unecessary?
--In reply to RE: RE: How do I remove blank lines from text files?
by davorg
in thread How do I remove blank lines from text files?
by dumpest
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |