How can I start an interactive console for Perl?

前端 未结 23 2435
故里飘歌
故里飘歌 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条回答
  •  甜味超标
    2020-12-07 08:07

    I think you're asking about a REPL (Read, Evaluate, Print, Loop) interface to perl. There are a few ways to do this:

    • Matt Trout has an article that describes how to write one
    • Adriano Ferreira has described some options
    • and finally, you can hop on IRC at irc.perl.org and try out one of the eval bots in many of the popular channels. They will evaluate chunks of perl that you pass to them.

提交回复
热议问题