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)

Replies are listed 'Best First'.
Re^4: Which way is recommended ?
by quester (Vicar) on Nov 22, 2008 at 07:56 UTC
    Pardon me, but even one liners need to enable warnings...
    $ perl -wpe '$_' file.txt Useless use of a variable in void context at -e line 1. ...
    It should actually just be
    $ perl -wpe '' file.txt