Help for this page

Select Code to Download


  1. or download this
    $/ = "\r\n";
    
  2. or download this
    for ("\r", "\n", "\r\n", "\n\r", "\r\r", "\n\n") {
        $line = 'text'.$_."text";
        $line =~ s/$1/\n/g if m/(\r\n?|\n\r?)/;
        print "$line\n";
    }