Help for this page

Select Code to Download


  1. or download this
    $has_field2 =~ s/field1:[\n]*\n\K(?!field2:).*(?=\nfield3:)
                    /field2: valueB
                    /msx;
    
  2. or download this
    c:\@Work\Perl\monks\Zu>perl -wMstrict -le
    "my $s = 'xxxyxxx';
    ...
    "
    'xxxFOO
       xxx'