Help for this page

Select Code to Download


  1. or download this
    #! /usr/local/bin/perl5.9.5
    
    ...
        say "Successfully matched.";
        print Dumper(\%+);
    }
    
  2. or download this
    #! /usr/local/bin/perl5.9.5
    
    ...
        print Dumper(\%+);
        print Dumper(\%-);
    }
    
  3. or download this
    Note that capture buffers matched inside of 
    recursion are not accessible after the recursion 
    returns, so the extra layer of capturing buffers 
    is necessary. Thus $+{NAME_PAT} would not
    be defined even though $+{NAME} would be [see example].