How can I start an interactive console for Perl?

前端 未结 23 2436
故里飘歌
故里飘歌 2020-12-07 07:37

How can I start an interactive console for Perl, similar to the irb command for Ruby or python for Python?

23条回答
  •  旧时难觅i
    2020-12-07 07:56

    Not only did Matt Trout write an article about a REPL, he actually wrote one - Devel::REPL

    I've used it a bit and it works fairly well, and it's under active development.

    BTW, I have no idea why someone modded down the person who mentioned using "perl -e" from the console. This isn't really a REPL, true, but it's fantastically useful, and I use it all the time.

提交回复
热议问题