Thanks for your help. Sorry about the inaccuracy but I hand-typed the code in my post and missed the quotes.
Anyhoo, it is working now that I changed open(FILE, "$File") to open(FILE, "<", "$File").
I have no idea how reading the file without that "<" could have affected chomp later o_O
In reply to Re^2: chomp removes everything *except* the newline?
by follier
in thread chomp removes everything *except* the newline?
by follier
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |