Help for this page

Select Code to Download


  1. or download this
        After a match against some variable $var:
    
    ...
    $1 is the same as substr($var, $-[1], $+[1] - $-[1])
    $2 is the same as substr($var, $-[2], $+[2] - $-[2])
    $3 is the same as substr $var, $-[3], $+[3] - $-[3])
    
  2. or download this
    use strict;
    for    my $regex (qr/(.)oo(.)ar(.)az/, qr/fo(.)barba(.)/) {
    ...
        /e;
        print "$str\n";
    }
    
  3. or download this
    f,b,b
    o,z