How can I start an interactive console for Perl?

前端 未结 23 2450
故里飘歌
故里飘歌 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 07:47

    Perl doesn't have a console but the debugger can be used as one. At a command prompt, type perl -de 1. (The value "1" doesn't matter, it's just a valid statement that does nothing.)

    There are also a couple of options for a Perl shell.

    For more information read perlfaq3.

提交回复
热议问题