Martin, thanks for the response. Yes there are multiple servers and I tried to
simplify the code since I wasn't providing a full script. This can also help
me minimize hard coding throughout the script.
----- Original Message -----
From: Martin Moss <[EMAIL PROTECTED]>
Date: Monday, April 4, 2005 12:21 pm
Subject: Re: [Perl-unix-users] hash of hashes
> I think this is what you're trying to do....
>
> But I'm not sure why? I'd only do this if you are
> expecting to have multiple configs for dbhost, e.g.
> devdb1, devdb2, devdb3... otherwise I'm not sure why
> you'd break down the structure this much...
>
>
> DEV => {
> fullname => "DEVELOPMENT",
> dbhost => {
> "devdb" => {
> sshcon => "",
> },
> webhost => {
> "devapp" => {
> sshcon => "",
> },
> numweb => 1,
> version => "8.1.7",
> },
>
>
> my $sshconn =
> $INST{$server}->{$serv_type}->{$serv_req}->{sshcon};
>
>
> Regards
>
> Marty
>
>
> Send instant messages to your online friends
> http://uk.messenger.yahoo.com
>
_______________________________________________
Perl-Unix-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs