Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Best Perl REPL/Shell on Win (and Linux)?

by shmem (Chancellor)
on Jan 09, 2020 at 18:58 UTC ( #11111258=note: print w/replies, xml ) Need Help??


in reply to Best Perl REPL/Shell on Win (and Linux)?

I use a (heavily hacked) version of perlsh from the Term::ReadLine::Gnu distribution. It uses the same readline library as bash on Linux does. Alas, it is not available on vanilla Windows. But both MinGW and Cygwin provide that libraries, which are only useful if the terminal makes use of it, which the cmd window doesn't. Didn't try with powershell yet. But Cygwin sports a bash window, and with carefully setting up $PATH and PERL5LIB it could be possible to install Term::ReadLine::Gnu into e.g. strawberry perl, which I did not try yet, either. So, much handwaving here.

But if I were to implement a good REPL, I'd definitely start with the GNU readline library.

perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11111258]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2020-06-04 23:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (35 votes). Check out past polls.

    Notices?