in reply to Re^2: Strange behavior with STDIN
in thread Strange behavior with STDIN

two chops is a very radical solution, because you might loose valid characters.

I'd rather go with a regex like suggested by Ikegami.

You should really try to figure out why your system is acting so strangely.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery