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