docu6
Pass Output of the script to the calling modul
The output of the script have to be one ycp value.
A YCP value can be string an integer, a list or a map
see YCP-datatype for detail
To do this you have to call on of the following functions:
ycpReturnSkalarAsInt
you send a 1
and get in YCP String: "1"
ycpReturnSkalarAsBoolean
you send a 1
and get in YCP String: true
ycpReturnSkalarAsString
you send a "abc"
and get a YCP String: "abc"
ycpReturnArrayAsList
you send a @aa = ( "aa", 1, 33.3 )
and get in YCP List [ "aa", "1", "33.3" ]
ycpReturnHashAsMap
you send a %yx;
$yx{"aa"} = 1;
$yx{"bb"} = 2;
ycpReturnHashAsMap( %yx)
and get in YCP Map $[ "aa":"1", "bb":"2" ]