What do you mean by "chomp [is] not working"? chomp removes \n (or whatever $/ holds) form the end of the string, if present.
I'd say the likelyhood of chomp not working is nil. The following questions should help you find the real problem:
Update: Added test snippets.
In reply to Re: chomp not working
by ikegami
in thread chomp not working
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |