http://qs321.pair.com?node_id=11137697


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»

Replies are listed 'Best First'.
Re^2: OS agnostic C&P CLI snippets with -E
by LanX (Saint) on Oct 19, 2021 at 09:41 UTC

      That's O.K. But from the friendly manual ibidem: «Reply is a lightweight, extensible REPL for Perl.» I’m a bit confused what you really want. Best regards, Karl

      «The Crux of the Biscuit is the Apostrophe»