That won't work for the same reason the OP's code doesn't work--you're making $hash{site} both a string and a hashref. The other suggestion is good, though.$hash{site} = $ftp_siebel_dns; $hash{site}{ip_now} = "x"; $hash{site}{ip_new} = "y";
In reply to Re^2: Problem with Hash when Using Strict
by Eimi Metamorphoumai
in thread Problem with Hash when Using Strict
by Dru
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |