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

Re: when $$s =~ m/\G.../gc is too verbose

by radiantmatrix (Parson)
on Feb 07, 2006 at 17:53 UTC ( #528576=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #Either
    local $_ = $$s;
    
    #Or
    s//$$s/; #tricky.. ;-)
    
  2. or download this
    sub lexer {
       my ($parser) = shift;
    ...
          return ($key, $1) if $$s =~ $regex;
       }
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (2)
As of 2020-11-30 06:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?