Since nobody else has used map() yet:
open my $hosts, '<', 'hosts.txt' or die "open failed: $!"; my %hosts = map { chomp; split /\s+/ } <$hosts>; close $hosts or die "close failed: $!";
Update: Dope! Two people got maps in before me (somehow) lol
In reply to Re: newbie hasher
by Coruscate
in thread newbie hasher
by prodevel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |