in reply to newbie hasher
# assuming you've already opened your file... while (my $line = <FILE>) { chomp $line; my ($host,$ip) = split(/\s+/,$line,2); $hosts{$host} = $ip; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: newbie hasher
by bart (Canon) on Nov 20, 2003 at 21:53 UTC |