in reply to OS agnostic C&P CLI snippets with -E
Let me guess once more. What you really want is something like an interactive shell, right?
But i fear this doesn't exist. Anyway, you might a look at Devel::REPL by the notorious Matt Trout and currently maintained by Ether.
Successfully installed Devel-REPL-1.003028 68 distributions installed Karls-Mac-mini:~ karl$ re.pl $ say q(Something); Compile error: syntax error at (eval 312) line 5, near "say q(Somethin +g)" BEGIN not safe after errors--compilation aborted at (eval 312) line 5, + <FIN> line 1. $ use feature qw(say); $ say q(something); something 1$
N.B.: The dependencies are inferior.
Best regards, KGB
«The Crux of the Biscuit is the Apostrophe»
In Section
Seekers of Perl Wisdom