Most Perl experts discourage the use of string eval. For example:
Update: In this quiz of the week MJD states:
A good rule of thumb is that unless what you're trying to do is most clearly described as "compile and run arbitrary Perl code", it's probably a mistake to use 'eval' to do it.
In reply to Re: Small examples of string eval
by eyepopslikeamosquito
in thread Small examples of string eval
by spurperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |