mojobo has asked for the wisdom of the Perl Monks concerning the following question:
perl -i -ple 'truncate $1, 0; print q{hello}' ./testpl
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: perl one-liner
by Kanji (Parson) on Jun 22, 2005 at 17:02 UTC | |
by mojobo (Initiate) on Jun 22, 2005 at 21:22 UTC | |
by mojobo (Initiate) on Jun 22, 2005 at 21:25 UTC | |
Re: perl one-liner
by tlm (Prior) on Jun 22, 2005 at 16:55 UTC | |
Re: perl one-liner
by friedo (Prior) on Jun 22, 2005 at 16:53 UTC | |
Re: perl one-liner
by Transient (Hermit) on Jun 22, 2005 at 16:53 UTC |