Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Pattern Match Issue

by JadeNB (Chaplain)
on Nov 23, 2009 at 21:02 UTC ( #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
Node Status?
node history
Node Type: note [id://808929]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (1)
As of 2021-05-16 00:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (151 votes). Check out past polls.

    Notices?