Flow Control
The Eval Function
- The eval() function parses and executes ANY valid
perl expressions passed to it
- The return value is the value of the last expression executed
$myString = "print 'Hello World\n';";
$val = eval( $myString );
# $val should be 1
- Think of the possibilities...