diff --git a/bin/domain-sift b/bin/domain-sift index 4f909a8..52a32e1 100755 --- a/bin/domain-sift +++ b/bin/domain-sift @@ -135,7 +135,7 @@ EOT } if ( !@ARGV ) { - unveil_or_die map { $ARG, 'r' } @INC; + unveil_or_die map { ( $ARG, 'r' ) } @INC; } pledge_or_die qw(rpath); diff --git a/lib/Domain/Sift/Manipulate.pm b/lib/Domain/Sift/Manipulate.pm index 7e61799..76da8cf 100644 --- a/lib/Domain/Sift/Manipulate.pm +++ b/lib/Domain/Sift/Manipulate.pm @@ -28,7 +28,7 @@ Manipulate domains. my $sift_manipulate = Domain::Sift::Manipulate->new(); my %domains = ( 'example.com', 'subdomain.example.com' ); - # remove subdomain.example.com since *.example.com would match it + # remove subdomain.example.com since *.example.com would match it $sift_manipulate->reduce_domains(\%domains); =head1 SUBROUTINES/METHODS @@ -48,7 +48,7 @@ sub new ($class) { =head2 reduce_domains - my $redundant_domains = $sift_manipulate->reduce_domains(\%example_domains); + my $redundant_domains = $sift_manipulate->reduce_domains(\%example_domains); Receives a reference to a hash of domain names and identifies redundant domains. If a domain and a subdomain are both keys in the hash, the diff --git a/lib/Domain/Sift/Match.pm b/lib/Domain/Sift/Match.pm index ddc2b50..2459576 100644 --- a/lib/Domain/Sift/Match.pm +++ b/lib/Domain/Sift/Match.pm @@ -22,7 +22,7 @@ Domain::Sift::Match - tools that match domains inside strings =head1 SYNOPSIS -C offers a set of methods for matching domains. +Domain::Sift::Match offers a set of methods for matching domains. use Domain::Sift::Match; @@ -133,7 +133,7 @@ sub contains_domain ( $self, $example_domain ) { =head2 extract_domain - my $extracted_domain = $sift_match->extract_domain($example_line); + my $extracted_domain = $sift_match->extract_domain($example_line); Extracts and returns a domain from a given line of text, if present. It ignores comments and blank lines and skips lines containing certain IP