Any expression can be passed to <code>eval<[http:/code>/perldoc.perl.org/functions/eval.html eval], in run-time the expression is parsed and executed in the same scope as it was called so any variables declared are visible in the <code>eval</code> and variables declared inside the eval still exist afterwards, you can use the <code>return</code> statement to exit the <code>eval</code> returning a value, if omitted, the result of the last expression evaluated will be returned.
<lang perl>($a, $b) = (5, 7);
Cookies help us deliver our services. By using our services, you agree to our use of cookies.