On Wed, Oct 31, 2001 at 09:53:58AM -0800, Sofia wrote:
[snip]
> %systems = (
>    sgi   => ["sgi1", "sgi2"],
>    linux => ["linux1", "linux2"],
>    dec   => ["dec1", "dec2"]
> };

[snip]
> %default = (
>     sgi   => ["sgi-help","/bin/csh","/home"],
>     linux =>
> ["someaddress-help","/bin/bash","/usr/home"],
>     dec   => ["help-desk","bin/kcsh","/usr1/home"]
> );
[snip]

Considering the nature of %default, where you have values of a certain type,
rather than a list of similar values, an array is probably inappropriate.

I'd probably use something along the lines of:

    %systems = (
        sgi => {
            machines    =>  [qw(sgi1 sgi2)],
            email_help  =>  'sgi-help',
            shell       =>  '/bin/csh',
            user_home   =>  '/home',
        },

        linux => {
            machines    =>  [qw(linux1 linux2)],
            email_help  =>  'someaddress-help',
            shell       =>  '/bin/bash',
            user_home   =>  '/usr/home',
        },

        ...
    );


Michael
--
Administrator                      www.shoebox.net
Programmer, System Administrator   www.gallanttech.com
--

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

Reply via email to