Core Function EvalCreate
From Sputnik Wiki
EvalCreate( )
Contents |
Description
Create an Eval object for use with Eval().
Parameters
Return Value
Success: Returns the Eval Object.
Failure: Returns null.
Remarks
An Eval Object is basically another instance of the entire Sputnik class that can be used to evaluate expressions without messing with your main environment.
Example
my $EvalSpk = EvalCreate(); my $Return = Eval('$a = 100;return 1 + $a;', $EvalSpk); say $Return; // Prints: 101