Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Trying to count the captures in a compiled regular expression

by BooK (Curate)
on May 03, 2004 at 01:01 UTC ( #349891=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub captures {
        local $_ = shift;
    ...
        }
        $n;
    }
    
  2. or download this
    use Test::More;
    
    ...
    for ( @regexps ) {
        is( captures( $_->[0] ), $_->[1], "$_->[1] captures" );
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://349891]
Approved by Zaxo
Front-paged by broquaint
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2015-01-26 05:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My top resolution in 2015 is:

















    Results (186 votes), past polls