Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
        $out .= ($line =~ s/abc/abc_$_/gr) . "\n" for (1,2);
        is( $out, $case->[1], $case->[2] );
    }
    
  2. or download this
    OUTPUT:
    1..2
    ok 1 - line 1
    ok 2 - line 2