Skip to content

Commit

Permalink
All funcs need a return. Move File::Spec() out of the BEGIN block
Browse files Browse the repository at this point in the history
  • Loading branch information
petdance committed Aug 19, 2007
1 parent f34ee6a commit ac9e9fd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions Ack.pm
Expand Up @@ -28,6 +28,8 @@ our $is_cygwin;
our $is_windows;
our %type_wanted;

use File::Spec ();

BEGIN {
%ignore_dirs = (
'.git' => 'Git',
Expand Down Expand Up @@ -78,7 +80,6 @@ BEGIN {
xml => [qw( xml dtd xslt )],
);

use File::Spec ();
$path_sep = File::Spec->catfile( '', '' );
$path_sep = quotemeta( $path_sep );

Expand Down Expand Up @@ -435,7 +436,6 @@ $copyright
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
END_OF_VERSION

}

=head2 print_version_statement( $copyright )
Expand Down Expand Up @@ -472,6 +472,8 @@ sub load_colors {

$ENV{ACK_COLOR_MATCH} ||= 'black on_yellow';
$ENV{ACK_COLOR_FILENAME} ||= 'bold green';

return;
}

=head2 is_interesting
Expand Down
6 changes: 4 additions & 2 deletions ack-standalone
Expand Up @@ -762,6 +762,8 @@ our $is_cygwin;
our $is_windows;
our %type_wanted;

use File::Spec ();

BEGIN {
%ignore_dirs = (
'.git' => 'Git',
Expand Down Expand Up @@ -812,7 +814,6 @@ BEGIN {
xml => [qw( xml dtd xslt )],
);

use File::Spec ();
$path_sep = File::Spec->catfile( '', '' );
$path_sep = quotemeta( $path_sep );

Expand Down Expand Up @@ -1100,7 +1101,6 @@ $copyright
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
END_OF_VERSION

}


Expand All @@ -1122,6 +1122,8 @@ sub load_colors {

$ENV{ACK_COLOR_MATCH} ||= 'black on_yellow';
$ENV{ACK_COLOR_FILENAME} ||= 'bold green';

return;
}


Expand Down

0 comments on commit ac9e9fd

Please sign in to comment.