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

Hi Rolf, I tried setting $/ = "\n;" and that didn't seem to help. But as mentioned elsewhere using two chop's did the trick. Weird but it works. Thanks for your help.

Scott

Replies are listed 'Best First'.
Re^3: Strange behavior with STDIN
by LanX (Saint) on Oct 26, 2021 at 20:24 UTC
    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