fml 8 tutorial ( under being translated ... ) | ||
---|---|---|
Prev | Chapter 26. IO abstraction layer (IO::Adapter class) | Next |
get_next_key() is typical. It needs no argument or STR as the argument and the return value is STR. since this method is used to list up the content of files or retrieve the specific address in the file.
In other case, the argument may be a pair of strings.
KEY_STR => [ VALUE_STR_1 VALUE_STR_2 VALUE_STR_3 ]This is used as the return value to represent ARRAY. For example, "actives" file of fml4 consists of lines which have plural space separeted entries. So it is a type of array.
rudo@nuinui.net s=skip m=xxx.yyy.z # commnet rudo@nuinui.net => [ s=skip m=xxx.yyy.z # comment ]
It is summarized as follows. The argument is one of "nothing" or "STR". The return value is either of STR of ARRAY_REF (array reference).
argument return value --------------------------------------- none => STR STR => STR none => [STR, STR, ... ] STR => [STR, STR, ... ]
author's homepage is www.fml.org/home/fukachan/.
Also, visit nuinui's world :) at www.nuinui.net.
For questions about FML, e-mail <fml-bugs@fml.org>.