- or download this
open FILE, "<", "$hostfile" || die "Cannot open $hostfile $!";
- or download this
open( FILE, "<", $hostfile ) || die "Cannot open $hostfile $!";
- or download this
open FILE, "<", $hostfile or die "Cannot open $hostfile $!";
- or download this
while (<FILE>) {
chomp;
my ($key, $value) = split (" ", $_);
$hosts{$key} = $hosts{$value};
}
- or download this
while (<FILE>) {
my ($key, $value) = split;
$hosts{$key} = $value;
}
- or download this
while (<FILE>) {
my ($key, @values) = split;
push @{$hosts{$key}} = @values;
}