Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Strange behavior with STDIN

by slugger415 (Monk)
on Oct 26, 2021 at 16:58 UTC ( [id://11138081]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11138081]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2024-04-24 06:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found