Another difference:
return is the return value of the eval itself, but the return value of the function calling do.sub hello_do { do { return; }; print "Hello from hello_do\n"; } sub hello_eval { eval { return; }; print "Hello from hello_eval\n"; } hello_do(); hello_eval(); __DATA__ Hello from hello_eval
In reply to Re: what difference between eval and do ?
by Eily
in thread what difference between eval and do ?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |