- or download this
my($src, $dst, $rule1) = (split /,/)[1];
- or download this
my $src = (split /,/)[0];
- or download this
$hash{$src} = $src;
- or download this
$hash{$src}++; # count occurrences
- or download this
next if $src =~ /$hash{$src}/;
- or download this
foreach (keys %hash)
{
print "$_ was seen $hash{$_} times\n";
}