Matt
Matt

Reputation: 5652

Is there anything like IPython / IRB for Perl?

I've grown accustomed to using IPython to try things out whilst learning Python, and now I have to learn Perl for a new job.

Is there anything out there like IPython for Perl? In particular, I'm interested in completion and access to help.

Upvotes: 19

Views: 5589

Answers (4)

Nate Glenn
Nate Glenn

Reputation: 6744

[UPDATED FOR RECENT CHANGES]

IPython is no longer just Python; Jupyter can be used for any language with a kernel implementation. Zakariyya Mughal released a Perl kernel last year, so I would recommend trying/contributing to that.

Upvotes: 2

JB.
JB.

Reputation: 42124

I usually just use perl -de0, but I've heard of:

Upvotes: 28

Boris Gorelik
Boris Gorelik

Reputation: 31777

From Perl FAQ:

Perl FAQ 3.7

Is there a perl shell?

Not really. Perl is a programming language, not a command interpreter.

This was the reason why I swhitched from Perl to Python. Anythow, several python shell workarounds do exist, but they are not even close to IPython

Upvotes: -6

Keltia
Keltia

Reputation: 14743

You can have a less featurefull environment by using the debugger "stand-alone".

perl -de 42

(42 is just a constant in order to have a non null "script" loaded).

From there, you can use My::Module and so on. I'm not sure there is a full irb-like program.

Upvotes: 4

Related Questions