Skip to content

Commit

Permalink
same fix for "perlbrew switch"
Browse files Browse the repository at this point in the history
  • Loading branch information
mstreuhofer committed Jan 14, 2015
1 parent 710a412 commit 69d9438
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/App/perlbrew.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1732,10 +1732,9 @@ sub run_command_use {

if ( !$perl ) {
my $current = $self->current_perl;
$current .= '@' . $self->current_lib if ($self->current_lib);
if ($current) {
print "Currently using $current";
print '@', $self->current_lib if ($self->current_lib);
print "\n";
print "Currently using $current\n";
} else {
print "No version in use; defaulting to system\n";
}
Expand All @@ -1751,6 +1750,7 @@ sub run_command_switch {

unless ( $dist ) {
my $current = $self->current_perl;
$current .= '@' . $self->current_lib if ($self->current_lib);
printf "Currently switched %s\n",
( $current ? "to $current" : 'off' );
return;
Expand Down

0 comments on commit 69d9438

Please sign in to comment.