Skip to content

Commit

Permalink
Merge pull request #442 from mstreuhofer/issue-439
Browse files Browse the repository at this point in the history
closes #439
  • Loading branch information
gugod committed Jan 20, 2015
2 parents 94c0c09 + fdd143a commit 75fca3c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/App/perlbrew.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1730,6 +1730,7 @@ 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\n";
} else {
Expand All @@ -1747,6 +1748,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 Expand Up @@ -2472,7 +2474,9 @@ perlbrew () {
case $1 in
(use)
if [[ -z "$2" ]] ; then
echo "Currently using ${PERLBREW_PERL:-system perl}"
echo -n "Currently using ${PERLBREW_PERL:-system perl}"
[ -n "$PERLBREW_LIB" ] && echo -n "@$PERLBREW_LIB"
echo
else
__perlbrew_set_env "$2"
exit_status="$?"
Expand Down

0 comments on commit 75fca3c

Please sign in to comment.