chomp removes the trailing newline (or the line ending represented by $/, if you wish to be accurate.) I think what you're looking for is a trim() function that removes leading and possibly trailing whitespace?
Cheers,
Ovid
New address of my CGI Course.
In reply to Re: chomp not working in array
by Ovid
in thread chomp not working in array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |