On Oct 31, Sofia said:
>So in the example that Daniel shows, how would I get
>(reference) the value for the shell path for the sgi
>system?
Using the data structure:
>> %systems = (
>> sgi => { defaults =>
>> ["sgi-help","/bin/csh","/home"],
>> machines => ["sgi1", "sgi2"],
>> },
>> linux => { defaults =>
>> ["someaddress-help","/bin/bash","/usr/home"],
>> machines => ["linux1", "linux2"],
>> },
>> dec => { defaults =>
>> ["help-desk","bin/kcsh","/usr1/home"],
>> machines => ["dec1", "dec2"],
>> },
>> );
you'd use:
$systems{sgi}{defaults}[1]
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/
RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]