Core Function EvalCreate

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
m (1 revision)
m (1 revision)
 

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
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox