Results 1 to 1 of 1
Now I can understand
$ips->{"@$row[0]"}=test_ip(@$row[1]);
$ips was the scalar now which has become a hash ref and we are intializing the key value. But following is little tricky, please help ...
- 02-20-2008 #1Linux Newbie
- Join Date
- Jan 2008
- Posts
- 114
$ips->{"@$row[0]"}->{"@$row[1]"}=test_ip(@$row[1]) in perl??
Now I can understand
$ips->{"@$row[0]"}=test_ip(@$row[1]);
$ips was the scalar now which has become a hash ref and we are intializing the key value. But following is little tricky, please help me in understand.
$ips->{"@$row[0]"}->{"@$row[1]"}=test_ip(@$row[1]);
and later in any other function how can I use $ips???Switched to Scripting


Reply With Quote