Mr said:
eval 'print "hello world"';
main:
x.pl:4): eval 'print "hello world"';
DB<1> n
main:
(eval 8)[x.pl:4]:1): print "hello world"
DB<1>
*DOH!* Where IS it!?
-Homer
Did you hit 'n' again to execute the last line of code ? It works as
expected for me using Active state 5.8.7
C:\develop\NiallPerlScripts>perl -d eval1.pl
Loading DB routines from perl5db.pl version 1.28
Editor support available.
Enter h or `h h' for help, or `perldoc perldebug' for more help.
main:
eval1.pl:1): eval 'print "hello world"';
SetConsoleMode failed, LastError=|6| at
C:/Perl/site/lib/Term/ReadKey.pm line 26
5.
at C:/Perl/site/lib/Term/ReadLine/readline.pm line 1415
readline::readline(' DB<1> ') called at
C:/Perl/site/lib/Term/ReadLine/
Perl.pm line 12
Term::ReadLine:
erl::readline('Term::ReadLine:
erl=ARRAY(0x18d537c)',
' DB<1> ') called at C:/Perl/lib/perl5db.pl line 6367
DB::readline(' DB<1> ') called at C:/Perl/lib/perl5db.pl line
2203
DB:
B called at eval1.pl line 1
DB<1> n
main:
(eval 10)[eval1.pl:1]:1): print "hello world"
DB<1> n
hello worldDebugged program terminated. Use q to quit or R to restart,
use O inhibit_exit to avoid stopping after program termination,
h q, h R or h O to get additional info.
DB<1>