Core Function EvalCreate

From Sputnik Wiki
Jump to: navigation, search
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