App-perluse

 view release on metacpan or  search on metacpan

script/perluse.sh  view on Meta::CPAN

            version="ActivePerl-$version"
        fi
esac

case "$version" in
    ActivePerl-*)
        for d in $HOME/opt/ActivePerl-* /opt/ActivePerl-*; do
            test -d "$d" || continue
            PATH="$d/site/bin:$d/bin:${PATH:-/usr/bin:/bin}"
            VIRTUAL_ENV="$version"
            debian_chroot="$version"
            break
        done
        ;;
    *)
        env=`$perlbrew env "$version" | sed 's/^export //'`
        test -n "$env" || exit 2
        eval $env
        export PERLBREW_MANPATH PERLBREW_PATH PERLBREW_ROOT PERLBREW_VERSION

        PATH="$PERLBREW_PATH:${PATH:-/usr/bin:/bin}"
        PERL5LIB=$(perl -le 'print join ":", grep { /site_perl/ } @INC')
        VIRTUAL_ENV="$PERLBREW_PERL"
        debian_chroot="$PERLBREW_PERL"
esac

export PATH PERL5LIB VIRTUAL_ENV debian_chroot

if [ $# -gt 0 ]; then
    "$@"
    exit $?
else
    "${SHELL:-/bin/sh}" -i
    exit $?
fi


: << POD

=head1 INSTALLATION

=head2 With cpanm(1)

  $ cpanm App::perluse

=head2 Directly

  $ lwp-request http://git.io/dXVJCg | sh

or

  $ curl -kL http://git.io/dXVJCg | sh

or

  $ wget -O- http://git.io/dXVJCg | sh

=head1 ENVIRONMENT

The script sets C<VIRTUAL_ENV> and C<debian_chroot> environment variables so
shell prompt line should mark current Perl environment used.

=head1 SEE ALSO

L<perlbrew>.

=head1 AUTHOR

Piotr Roszatycki <dexter@cpan.org>

=head1 LICENSE

Copyright (c) 2011-2014, 2020 Piotr Roszatycki <dexter@cpan.org>.

This is free software; you can redistribute it and/or modify it under
the same terms as perl itself.

See L<http://dev.perl.org/licenses/artistic.html>

=cut

POD



( run in 1.352 second using v1.01-cache-2.11-cpan-0b5f733616e )