Hi!

I am thinking about best hash structure, I want save all datas from
hash to database. Example:

'name' => {
           'ra' => {
                    'do' => undef,
                    'od' => '1996-01-07',
                    'name' => 'brano'
                    }
           'ro' => {
                    '1' => {
                            'do' => undef,
                            'od' => '1998-01-01',
                            'name' => 'john'
                            }
                    '2' => {
                            'do' => '1991-05-15',
                            'od' => '1992-11-01',
                            'name' => 'michael'
                            }
                    }
           }

Explanation:
elements in 'ra' are always 1 times in hash, elements in 'ro'
should be zero or more times. Do you think this is good way how to
declare hash ?

thanks.

--

 --. ,--  ,-     ICQ: 7552083      \|||/    `//EB: www.2ge.us
,--' |  - |--    IRC: [2ge]        (. .)    ,\\SN: 2ge!2ge_us
`====+==+=+===~  ~=============-o00-(_)-00o-================~
You're a Redneck If U think people who have electricity are uppity.
 




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to