Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > why doesn't this eval print ?

Reply
Thread Tools

why doesn't this eval print ?

 
 
Mr P
Guest
Posts: n/a
 
      05-19-2006

eval 'print "hello world"';

main:x.pl:4): eval 'print "hello world"';
DB<1> n
main:(eval [x.pl:4]:1): print "hello world"
DB<1>


*DOH!* Where IS it!?

-Homer

 
Reply With Quote
 
 
 
 
niall.macpherson@ntlworld.com
Guest
Posts: n/a
 
      05-19-2006
Mr P wrote:

> eval 'print "hello world"';
>
> main:x.pl:4): eval 'print "hello world"';
> DB<1> n
> main:(eval [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:e rl=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>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
eval('07') works, eval('08') fails, why? Alex van der Spek Python 6 01-08-2009 08:24 PM
why why why why why Mr. SweatyFinger ASP .Net 4 12-21-2006 01:15 PM
findcontrol("PlaceHolderPrice") why why why why why why why why why why why Mr. SweatyFinger ASP .Net 2 12-02-2006 03:46 PM
DataBinder.Eval and Eval. craigkenisston@hotmail.com ASP .Net 1 06-16-2006 05:33 PM
DataBinder.Eval for an object's property property... like Eval(Container.DataItem,"Version.Major") Eric Newton ASP .Net 3 04-04-2005 10:11 PM



Advertisments