fml 8 tutorial
Prev | Chapter 50. IO Abstraction Layer (IO::Adapter Class) | Next

# 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 => [
         VALUE_STR_1
         VALUE_STR_2
         VALUE_STR_3
    ]

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 => [
            s=skip
            m=xxx.yyy.z
            # 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, ... ]

Prev | Home | Next
IO::Adapter Methods | Up | File Map

fml 8.0 (fml-devel) project homepage is www.fml.org/software/fml8/.
fml 4.0 project homepage is www.fml.org/software/fml4/.
about one floppy bsd routers, see www.bsdrouter.org/.
other free softwares are found at www.fml.org/software/.

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>.