Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Question about regex. ($INPUT_RECORD_SEPARATOR)

by LanX (Cardinal)
on Sep 29, 2020 at 11:12 UTC ( #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
Node Status?
node history
Node Type: note [id://11122322]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2021-06-24 18:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (130 votes). Check out past polls.

    Notices?