There is a carriage return at the end of each line. @arr1 before the chomp should like like above when printed out.You are splitting on newlines. Why do you expect them to still be there?
In reply to Re^3: "chomp" not working
by JavaFan
in thread "chomp" not working
by cuautemoc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |