in reply to perl one-liner
perl -0777 -i -nle 'print q{hello}' test.pl
...but as others have pointed out, it's much easier to handle this sort of thing with shell redirection.
--k.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: perl one-liner
by mojobo (Initiate) on Jun 22, 2005 at 21:22 UTC | |
Re^2: perl one-liner
by mojobo (Initiate) on Jun 22, 2005 at 21:25 UTC |
In Section
Seekers of Perl Wisdom