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

Re: Re: regex for here doc?

by smackdab (Pilgrim)
on Oct 14, 2003 at 05:34 UTC ( #299031=note: print w/ replies, xml ) Need Help??


in reply to Re: regex for here doc?
in thread regex for here doc?

BIG thanks, this is so much simplier than my code!

I think the idea of $/ makes a huge difference. Even though I had working code, I am glad to replace it with something more manageable and something that adds to my experience.


Comment on Re: Re: regex for here doc?
Re: Re: Re: regex for here doc?
by ysth (Canon) on Oct 14, 2003 at 09:41 UTC
    You probably want to set $/ to "\n$2", not just $2. At least, that's how heredocs usually work.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2014-09-20 22:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (163 votes), past polls