Help for this page

Select Code to Download


  1. or download this
    c:\@Work\Perl\monks>perl -MO=Deparse,-p -i -lpe "s/^\s*$/<r><\/r>/g"
    BEGIN { $^I = ""; }
    ...
        print($_);
    }
    -e syntax OK
    
  2. or download this
        use constant BLANK_LINE   => qr{ \A \s* \z }xms;
        use constant EMPTY_R_PAIR => "<r></r>\n";
        ...
        $out = EMPTY_R_PAIR if $out =~ BLANK_LINE;