Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    
    ...
    if ($text =~ s/$find/$rpl/ee) {
        print "1st replacement made:\n\t$text\n";
    }
    
  2. or download this
    my $rpl  = '"read" . $1';