Postman Pat wrote:

> I am trying to create a small database with the information like this:
>
> Each record has a name ie :
> Dog
> And has the following traits:
>         color
>         weight
>         nick
>
> For example I could have the following data:
>
> Name: dog
> Color: green
> Weight: 66
> Nick: doggie
> friend: cat
>
> Name: fox
> Color: purple
> Weight: 1000
> Nick: foxie brown
> friend: sheepie
>
> Name: blue
> Color: pink
> Weight:
> Nick: blou
> friend: pinkie
>
> In the above example, there is no entry for weight.
>
> How would I go about storing and retrieving this information? Any examples
> please??

If it is a small database then you can create a hash tie (perldoc -f tie).
There are some examples given in Learning Perl.

>
>
> Regards
>
> LK
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to