Syntactic Confectionery Delight | |
PerlMonks |
|
"...memory allocation is the most important reason to learn C, IMO.
(and the biggest reason I rarely use C)" -tye
"LISP programmers take for granted that source filters work.
Perl programmers take for granted that they won't." -hardburn
"You can do "$/$/". You can do $/,$/. You can do "\n\n". Pick your poison." - tilly
"My continued survival is dependent on the fact that
my future selves cannot reach back and strangle my present self. :-D" - tilly
"10 years from now, Larry Wall will announce he'll be running for president,
and on January 24, 2017, Larry will be sworn in as the 45th president
of the United States, succeeding Hillary Clinton." - Anonymous Monk
Remove trailing hidden characters (credit monarch):perl -e 'print scalar( my @foo = glob "*.out"),$/'
perl -ne 's/[\r\n]+\Z//; print;' text.txt