Core Function EvalCreate
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> EvalCreate( ) </pre> === Description === Create an Eval object for use with Eval(). === Parameters === === Return Value === Success: Returns the Eval Object. Failure...") |
m (1 revision) |
(One intermediate revision by one user not shown) |
Latest revision as of 12:37, 14 June 2015
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