Help for this page

Select Code to Download


  1. or download this
    my $subst = 'lc $1';
    # and later
    $str =~ s{$pattern}{push @pos, pos $str; eval $subst; }eg
    
  2. or download this
    use strict;
    use warnings;
    ...
        print Dumper \@pos;
        print $str, "\n";
    }