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