Quite possibly your $_ comes from reading in a line in a file and contains a newline. Try chomp before you use $_.
Then again, as you do not provide context, the problem might be a completely different one.
CU
Robartes-
In reply to Re: system call and newline interpretattion.
by robartes
in thread system call and newline interpretattion.
by jaimeGonz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |