Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Question about regex. ($INPUT_RECORD_SEPARATOR)

by LanX (Saint)
on Sep 29, 2020 at 11:12 UTC ( [id://11122322]=note: print w/replies, xml ) Need Help??


in reply to Question about regex.

> Where am I going wrong?

Short-answer:

You need to set $/ aka $INPUT_RECORD_SEPARATOR before you start reading the <input> , not inside the loop.

You already got this from the previous longer answers, but I wanted to make it clear for those who didn't manage to dig thru all the code.

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://11122322]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2024-04-19 13:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found