fml 8 tutorial
Prev | Chapter 45. IO Interface And Operations | Next

# Discussion

## What ARRAY_REF return ?

What expected in using ARRAY_REF as the return value ? A list of PRIMARY KEY ?

## How To Get All Primary Keys ?

We need to call get_next_keys() again and again to retrieve all keys. It may be useful to implement special method to return a list of keys but it is not implemented.

get_primary_keys() ? find('*', { all => 1 }) is used for this purpose. It is of no use to implement specific method for this.

## HASH_REF As Return Value ?

What expected ?

    RETURN VALUE = {
    	KEY_1 => VALUE_1,
    	KEY_2 => VALUE_2,
    }

If a mail address has several attributes, this method is useful. For example, consider digest delivery:

    ADDRESS => {
    	internal	=> 	3 hours,
    	compression	=>	no,
    	format		=>	mime/multipart,
    };

Abstracted Cache IO layer is this type such as:

    FML::Error -> FML::Error::Cache -> Tie::JournaledDir

But ... dependent on Tie::* hmm ..

Prev | Home | Next
Methods / Operation Vector | Up | Lock

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