in reply to Re: How to use eval?
in thread How to use eval?
$ more eval #!/usr/bin/perl $code = 'if($a>$b){ $result =1} '; $a =1; $b = 0; $result =0; eval $code; print "eval error\n" if($@); print $result; $ eval $ perl -v This is perl, v5.8.2 built for sun4-solaris Copyright 1987-2003, Larry Wall
| You can see what's happened on my computer,there are nothing . |
| Which perl version do you use ?Maybe it is a bug? |
| thanks! |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: How to use eval?
by bmann (Priest) on Apr 09, 2004 at 07:51 UTC | |
by matija (Priest) on Apr 09, 2004 at 08:09 UTC | |
by ambrus (Abbot) on Apr 09, 2004 at 20:55 UTC |