How can I start an interactive console for Perl, similar to the irb command for Ruby or python for Python?
How can I start an interactive console for Perl, similar to the irb command
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use the perl debugger on a trivial program, like so:
This command will start the Perl debugger (
-d) on expression1(-e1), because the debugger wants something to debug (usually a file containing Perl code). The command could be written asperl -d -e 1as well.Alternatively there’s Alexis Sukrieh‘s Perl Console application, but I haven’t used it.