This will not work. As others pointed out, chomp does not chomp white spaces.
Your reverse() trick will work ;-) if chomp chomps trailing white spaces.
In reply to Re^2: chomp not working in array
by pg
in thread chomp not working in array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |