Skip to content

Commit

Permalink
byoctet: also split '/'
Browse files Browse the repository at this point in the history
  • Loading branch information
hirose31 committed Mar 29, 2010
1 parent c787240 commit 3bb5ffb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions update-mobilejp-cidr
Expand Up @@ -84,8 +84,8 @@ sub main {
}

sub byoctet {
my $ao = [split /\./, $a];
my $bo = [split /\./, $b];
my $ao = [split /[.\/]/, $a];
my $bo = [split /[.\/]/, $b];
$ao->[0] <=> $bo->[0] or
$ao->[1] <=> $bo->[1] or
$ao->[2] <=> $bo->[2] or
Expand Down

0 comments on commit 3bb5ffb

Please sign in to comment.