AGhoulDoingPerl has asked for the wisdom of the Perl Monks concerning the following question:
perl's do 'string' and eval 'string' seems to me equivalent except that 'eval' trapps an error while 'do' don't
can someone please show me what their differences are?:(
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: What is the difference between eval and do?
by Eliya (Vicar) on Feb 19, 2011 at 14:53 UTC | |
by AGhoulDoingPerl (Sexton) on Feb 20, 2011 at 05:41 UTC | |
|
Re: What is the difference between eval and do?
by ELISHEVA (Prior) on Feb 19, 2011 at 21:36 UTC | |
by AGhoulDoingPerl (Sexton) on Feb 20, 2011 at 05:41 UTC | |
|
Re: What is the difference between eval and do?
by educated_foo (Vicar) on Feb 19, 2011 at 14:35 UTC | |
by AGhoulDoingPerl (Sexton) on Feb 20, 2011 at 05:33 UTC | |
|
Re: What is the difference between eval and do?
by Anonymous Monk on Feb 19, 2011 at 14:53 UTC | |
by AGhoulDoingPerl (Sexton) on Feb 20, 2011 at 05:38 UTC |