defining subroutines when using interpreter interactively?

Discussion in 'Perl' started by MackS, Mar 11, 2005.

  1. MackS

    MackS Guest

    Hi folks,

    Following FAQ 3.1, I am now interacting with the compiler interactively
    (in debug mode) by calling

    $ perl -de 1

    However, I am not able to define a new subroutine for some repeated use
    while debugging. Is there any way to define a subroutine in interactive
    mode? (Other than "use"ing it, that is.)

    Thanks in advance,

    Mack
     
    MackS, Mar 11, 2005
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jimmy Phillips
    Replies:
    2
    Views:
    505
  2. johny smith
    Replies:
    8
    Views:
    702
    Peter Koch Larsen
    Jul 2, 2004
  3. Replies:
    3
    Views:
    1,074
    Ziga Seilnacht
    Jan 3, 2007
  4. terminus
    Replies:
    0
    Views:
    547
    terminus
    Feb 26, 2008
  5. Guillermo Riojas
    Replies:
    0
    Views:
    326
    Guillermo Riojas
    Nov 26, 2010
  6. Derek Basch
    Replies:
    5
    Views:
    183
    Dr.Ruud
    May 10, 2006
  7. L. D. James

    Using Subroutines with CGI::Session::MySQL?

    L. D. James, Aug 16, 2007, in forum: Perl Misc
    Replies:
    22
    Views:
    938
    L. D. James
    Aug 21, 2007
  8. Replies:
    4
    Views:
    343
    praveen kandala
    Oct 27, 2007
Loading...