Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1046451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T16:08:55+00:00 2026-05-16T16:08:55+00:00

I usually use perl -de 42 for obtaining an interactive Perl shell. I have

  • 0

I usually use perl -de 42 for obtaining an interactive Perl shell. I have seen Devel::REPL and I have seen some blogs like http://www.xenoterracide.com/2010/07/making-repl-usable.html explaining how you can enhance Devel::REPL with the plugins, but I have not used yet.

Is it too bad to use the debugger as an interactive shell? Why?

Note:
the disadvantages mentioned in this PerlMonks node were limitations of the user, not of the Perl debugger.

Where can I read more about Perl REPL?

Is Devel::REPL ready for the limelight?

UPDATE:
I accepted the Pedro’s answer because it answered the question that I asked, but still I would like to know when and why (if any) the use of the Perl debugger as an interactive shell is a bad idea compared with one of the Perl REPL implementations. And which Perl REPL do you prefer?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T16:08:55+00:00Added an answer on May 16, 2026 at 4:08 pm

    One disadvantage of perl -d is that lexical variables immediately go out of scope. Example:

    DB<1> my $p = 123;
    
    DB<2> print $p;
    
    DB<3>
    

    From perldebug:

    Note that the said eval is bound by an
    implicit scope. As a result any newly
    introduced lexical variable or any
    modified capture buffer content is
    lost after the eval. The debugger is a
    nice environment to learn Perl, but if
    you interactively experiment using
    material which should be in the same
    scope, stuff it in one linescope, stuff it in one line.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In shells like the interactive python shell, you can usually use the arrow keys
I would like to call a java class from perl. I usually use the
I usually use C++ stdlib map whenever I need to store some data associated
When I am unsure about some thing for a project, I usually use a
I usually, almost without thinking anymore, use forward declarations so that I won't have
With warnings enabled, perl usually prints Use of uninitialized value $foo if $foo is
I am writing Perl scripts and when I have too many functions, I usually
I would like to represent a set in Perl. What I usually do is
I usually use expressions like this CommandArgument='<%# Container.DataItemIndex.ToString() %> ' But I could not
I usually use IIS in conjunction with the OutSystems development platform, which does code-generation

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.