Help for this page

Select Code to Download


  1. or download this
    $Data = <DATA>;
    $Data =~ s/(\[NEW\].+?)\<?(\n\[)/$1<p>$2/sg;
    
  2. or download this
    #!/usr/bin/perl
    while(<DATA>){
    ...
    +ir
    grandmother.<
    [OLD]
    
  3. or download this
        $line =~ s/\<$//; # Remove <
        $line .= '<p>' if $f eq 'NEW'; # Add <p> for NEW blocks only