Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

RE: Re: multi-line regex again

by reptile (Monk)
on Aug 28, 2000 at 18:50 UTC ( #29985=note: print w/ replies, xml ) Need Help??


in reply to Re: multi-line regex again
in thread multi-line regex again

No, actually, he's got that part right. The match is against $_, so no =~ needed. He's assigning the groups in the regex to those variables (not trying to match what's in them). I'm pretty sure that was the goal.

local $_ = "0A72656B636148206C72655020726568746F6E41207473754A"; while(s/..$//) { print chr(hex($&)) }


Comment on RE: Re: multi-line regex again
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2015-07-30 01:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls