[HOME] [NSRG] [インフラ] [fml4] [fml8] [北海道] [おすすめの本] Powered by NetBSD and [nuinui.net] .

Argument Type Of Methods

The argument needs nothing, STR or ARRAY_REF as the argument and the return value is STR. get_next_key() is typical as the no argument case. This method is used to list up the content of files or retrieve the specific address in the file.

In other case, the return value may be a pair of strings.

KEY_STR => [
This is used as the return value to represent ARRAY_REF. For example, "actives" file of fml4 consists of lines which have plural space separeted entries. So it can be representated as a type of array.
rudo@nuinui.net	s=skip m=xxx.yyy.z # commnet

rudo@nuinui.net => [
        # comment

If retrieval value could be represented as ARRAY_REF, argument of store operations alsot needs ARRAY_REF.

It is summarized as follows. The argument is one of "nothing", "STR" or ARRAY_REF. 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, ... ]

[HOME] [NSRG] [インフラ] [fml4] [fml8] [北海道] [おすすめの本] Powered by NetBSD and [nuinui.net] .
Copyright (C) 1993-2017 Ken'ichi Fukamachi mail:< fukachan at fml.org >