alias pe='perl -E'
alias ppe='perl -pE'
alias pne='perl -nE'
alias pipe='perl -i -pE'
alias pine='perl -i -nE'
that alone saves me a whole lot of typing over the week :)
> pe 'say q[hello, lazyness!]'
> hello, lazyness!
It's also pretty easy to remember, since you just type 'p' for 'perl', followed by the main flags your one-liner has. Oh, and of course you also can pre-load your favorite modules, doing things like:
alias pe='perl -MData::Dumper -lE'
That's it, hope you enjoy it :)
Useful article, thank you for sharing the article!!!
ReplyDeleteWebsite bloggiaidap247.com và website blogcothebanchuabiet.com giúp bạn giải đáp mọi thắc mắc.