http://www.perlmonks.org?node_id=725206


in reply to Re^2: Which way is recommended ?
in thread Which way is recommended ?

Exactly. If you are feeling (over)confident you can just code this:

open (FILE, $filename) or die $!; print while <FILE>;

Or on the command line:

perl -pe '$_' file.txt

UPDATE: thanks for the correction, quester

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)