- or download this
my ($server, @data) = (split(“,”,$line));
- or download this
my ($server, $data) = (split(“,”,$line));
- or download this
my ($server, $data) = split ',', $line, 2;
- or download this
if ($data[0] lt “!” ) {
$data[0] = 0;
}
next if grep /[^0-9.]/, @data;
- or download this
next if $data =~ /[^0-9.]/;
- or download this
push @{$usage{$server}}, 0 while @{$usage{$server}} < $files;
push @{$usage{$server}}, $data[0];
- or download this
$usage{$server}->[$files] = $data unless $usage{$server}->[$files]
- or download this
continue {
$files++ if eof;
}
close $fh or die "Can’t close file $file: $!";
- or download this
my $files = 0;
for my $file ("sfull1ns.dat","sfull2ns.dat","sfull3ns.dat") {
...
$files++
close $fh or die "Can’t close file $file: $!";
}
- or download this
print "$_," . (join ',', @{$usage{$_}}) . "\n" for (keys %usage);
- or download this
for (keys %usage) {
for my $f (0,1,2) {
$usage{$_}->[$f] = 0 unless defined $usage{$_}->[$f];
} }