Help for this page

Select Code to Download


  1. or download this
      LINE:
        while (my $line = <$INFILE> ) {
    ...
            #
            $text .= $line . $NEWLINE;
        }
    
  2. or download this
    next LINE if length $line == 1 and q{\} eq substr $line, 0, 1;
    
  3. or download this
    s/(?<=\n)\s+//;
    #or, line by line:
    s/\A\s+//
    
  4. or download this
    s/\s+\n//;
    
  5. or download this
    Readonly my $ESC_BACKSLASH => q{\\};
    Readonly my $NEWLINE => q{\n};
    $wholefile =~ s/$ESC_BACKSLASH\z//o;
    
  6. or download this
    Readonly my $RTF_CMD => qr/$ESC_BACKSLASH [\w-]+/xo;
    s/$RTF_CMD//;