in reply to Re: OS agnostic C&P CLI snippets with -E
in thread OS agnostic C&P CLI snippets with -E
> but the following seemed like a very easy way to achieve this.
Well, these are a handful more steps than just running
perl COPIED CODE __END__
As Corion pointed out you can even avoid the __END__ by typing C-z (C-c resp. Win).
But when posting I prefer __END__ because C&P easily works for the reader.
Even better this doesn't come anymore with your restriction of not using the single-quote in the code, because of your -E'...' delimiter.
The purpose of this thread was finding a way to avoid typing use feature ':all' to replicate -E
I think my 'alias' solution does it well for me locally to run -E code.
And when posting code here, I can still expand for easy reproducibility on readers side.
perl -Mfeature=:all CODE __END__
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
---|