Semantics : DynamicStatements

DynamicStatements  ::=  ( eval | evalExternal | evalFile ) ( Expr | HereDoc )
( with ArgumentList )? ;

Used by:  

These statements evaluates text content as a subprogram.

The eval statement evaluates the subprogram in the current content. This means that any function, thread or class declarations are taken in the current content as well.

The evalExternal does in a separate context; declarations are thrown away once evaluation is done. Command-line options can be specified via the with clause. They are always expanded, that is, arrays are expanded as individual parameters.

The evalFile evaluates the content of a file as the subprogram externally.