in reply to Reading lines beginning with pound # ignored
G'day slugger415,
Check the line endings of the file.
I suspect this is happening:
$ perl -e ' my @lines = ("1\r", "12\r", "123\r"); print for @lines; ' 123
While you're expecting this:
$ perl -e ' my @lines = ("1\n", "12\n", "123\n"); print for @lines; ' 1 12 123
— Ken
|
|---|