Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
        }xmsg;
    
    print "RESULTS: ", ( Dumper \@captures ), "\n";
    
  2. or download this
    RESULTS: $VAR1 = [undef,'21','a','b','9',undef,'b','42',undef,undef,'1
    +2','a'];
    
  3. or download this
    my @captures = $string_three =~ m{
        \b ([ab])? (\d+)
        (?(1) | ([ab]) ) \b
        }xmsg;
    
  4. or download this
    my @captures = $string_three =~ m{
        \b ([ab])? (\d+) (?(1) (*ACCEPT) ) ([ab]) \b
        }xmsg;