Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I encountered a problem, when I in cpan command line or using perl -d test.pl to get into debug command line, there is no echo of what I've inputed.

I googled a lot, but don't have a clue.

Would you help. Thanks in advance.

Replies are listed 'Best First'.
Re: Cpan command line no echo
by LanX (Saint) on Jan 08, 2013 at 07:58 UTC
    > perl -d test.pl

    you are talking about the debugger?

    It doesn't execute anything before you don't type any stepping commands like n.

    try h for help and plz read the docs.

    UPDATE:

    lanx@nc10-ubuntu:/tmp$ cat >tst.pl $|=1; for (1..10) { print "$_\n"; } lanx@nc10-ubuntu:/tmp$ perl -d tst.pl Loading DB routines from perl5db.pl version 1.3 Editor support available. Enter h or `h h' for help, or `man perldebug' for more help. main::(tst.pl:1): $|=1; DB<100> n main::(tst.pl:2): for (1..10) { DB<100> n main::(tst.pl:3): print "$_\n"; DB<100> n 1 main::(tst.pl:3): print "$_\n"; DB<100> n 2 main::(tst.pl:3): print "$_\n";

    EDIT: last paragraph erased.

    Cheers Rolf

      DB<100> n
      I mean when I input n, there is no n in perldebug command line. There is no echo.

      In my screen, looks like this:
      DB<100>
        Try export TERM=DUMB perl -d ...