Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Pattern Match Issue

by JadeNB (Chaplain)
on Nov 23, 2009 at 21:02 UTC ( [id://808929]=note: print w/replies, xml ) Need Help??


in reply to Pattern Match Issue

Your code doesn't compile as presented; I assume that you mean to have two } at the end of the while loop, and that the contents after > is what's in $IN2? In this case, the problem is that the IRS $/ is set to be a newline, so the string is read as 3 separate lines, rather than 1 big one as you'd hope. You could ‘slurp’ by using local $/, if that's the effect that you want.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-04-26 06:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found