Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: multi-line regex again

by lindex (Friar)
on Aug 28, 2000 at 16:03 UTC ( [id://29974]=note: print w/replies, xml ) Need Help??


in reply to multi-line regex again

will when ever doing a regex match in perl you need todo =~ not =
that could be one problem :)


lindex
/****************************/ jason@gost.net, wh@ckz.org http://jason.gost.net /*****************************/

Replies are listed 'Best First'.
RE: Re: multi-line regex again
by reptile (Monk) on Aug 28, 2000 at 18:50 UTC

    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($&)) }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2024-03-29 11:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found