Skip to content

Commit

Permalink
clarify 'lib' command.
Browse files Browse the repository at this point in the history
clarify that the 'lib' command depends on a perl installation being used
or switched to, if the libname does not include the perl installation's
name.

closes issue #437
  • Loading branch information
mstreuhofer committed Jan 13, 2015
1 parent 7e9a68d commit 0448fcf
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions bin/perlbrew
Original file line number Diff line number Diff line change
Expand Up @@ -542,21 +542,33 @@ full name, prefixed by a perl installation name and a '@' sign, for example,

Here are some a brief examples to invoke the `lib` command:

# Create libs by name
perlbrew lib create nobita
# Create lib perl-5.12.3@shizuka
perlbrew lib create perl-5.12.3@shizuka

perlbrew list # See the list of use/switch targets.
# Create lib perl-5.14.2@nobita and perl-5.14.2@shizuka
perlbrew use perl-5.14.2
perlbrew lib create nobita
perlbrew lib create shizuka

# See the list of use/switch targets
perlbrew list

# Activate a lib in current shell.
perlbrew use perl-5.12.3@nobita
# Activate a lib in current shell
perlbrew use perl-5.12.3@shizuka
perlbrew use perl-5.14.2@nobita
perlbrew use perl-5.14.2@shizuka

# Activate a lib as default.
# Activate a lib as default
perlbrew switch perl-5.12.3@shizuka
perlbrew switch perl-5.14.2@nobita
perlbrew switch perl-5.14.2@shizuka

# Delete the lib
# Delete lib perl-5.14.2@nobita and perl-5.14.2@shizuka
perlbrew use perl-5.14.2
perlbrew lib delete nobita
perlbrew lib delete shizuka

# Delete lib perl-5.12.3@shizuka
perlbrew lib delete perl-5.12.3@shizuka

Short lib names are local to current perl. A lib name 'nobita' can refer to
Expand Down

0 comments on commit 0448fcf

Please sign in to comment.