Skip to content

Commit

Permalink
fixed bogus perl version queries
Browse files Browse the repository at this point in the history
  • Loading branch information
stsichler committed Aug 17, 2016
1 parent 5e9f50a commit 516a500
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CPAN/IO/String.pm
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ sub close
delete *$self->{buf};
delete *$self->{pos};
delete *$self->{lno};
if ($] >= 5.006 && $[ < 5.007) {
if ($] >= 5.006 && $] < 5.007) {
# perl-5.6.x segfaults on untie, so avoid it
}
else {
Expand Down
2 changes: 1 addition & 1 deletion CPAN/PAR.pm
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ sub _find_par_internals {
my $scheme;
foreach (@$INC_ARY ? @$INC_ARY : @INC) {
my $path = $_;
if ($[ < 5.008001) {
if ($] < 5.008001) {
# reassemble from "perl -Ischeme://path" autosplitting
$path = "$scheme:$path" if !@$INC_ARY
and $path and $path =~ m!//!
Expand Down

0 comments on commit 516a500

Please sign in to comment.