include

Synopsis

include(['/path/to/file.jar'], 'script.sl')

Compiles and executes the specified script in the current script context.

Parameters

'/path/to/file.jar' - optionally a jar file that contains the script can be specified. If no .jar file is specified then the script will be loaded from the sleep.classpath value.

'script.sl' - this is the script to load and execute within the current script environment.

Side Effects / Notes

Errors

Examples

# foo.sl: # sub foo { # println("Hello World! Hello $name"); # } include("foo.sl"); $name = "Horatio"; foo();

Hello World! Hello Horatio

See Also