YaST2 Developers Documentation: Perl:: built-in functions



Perl:: built-in functions

Perl::AAA_DISABLED () -> void

Note that with the migration to the new interpreter, these builtins don't work! I will rework the docs. -- mvidner

Perl::CallBoolean (string funcname, any param1, ...) -> boolean
Perl::CallBool    (string funcname, any param1, ...) -> boolean

Calls a perl function ...

Perl::CallInteger (string funcname, any param1, ...) -> integer
Perl::CallInt     (string funcname, any param1, ...) -> integer

Calls a perl function ...

Perl::CallList (string funcname, any param1, ...) -> list

Calls a perl function ...

Perl::CallString (string funcname, any param1, ...) -> string

Calls a perl function ...

Perl::CallVoid (string funcname, any param1, ...) -> void

Calls a perl function ...

Perl::Eval (string perl_code) -> any

Evaluates Perl code and returns the result.

Perl::Parse (string file_name) -> void

Loads a Perl script.

This executes Perl "use" instructions and BEGIN blocks, but not the script itself.

Internal structures must be cleaned up by Perl::Destroy before it can be called again.

Perl::Run () -> void

Runs a script loaded by Perl::Parse or Perl::LoadModule.

Can be called repeatedly.

Perl::Use (string module) -> void
Perl::LoadModule (string module) -> void

Loads a module.


YaST2 Developers Documentation: Perl:: built-in functions