| 1 | #!/usr/bin/perl -c | ||
| 2 | |||
| 3 | package App::perluse; | ||
| 4 | |||
| 5 | =head1 NAME | ||
| 6 | |||
| 7 | App::perluse - Use the specified perl in shell command | ||
| 8 | |||
| 9 | =head1 SYNOPSIS | ||
| 10 | |||
| 11 | $ cpanm App::perluse | ||
| 12 | |||
| 13 | $ perluse 5.30.0 perl -E 'say $^V' | ||
| 14 | |||
| 15 | $ perluse blead perldoc perldelta | ||
| 16 | |||
| 17 | $ perluse perl-5.30.0 | ||
| 18 | |||
| 19 | $ perluse | ||
| 20 | |||
| 21 | =head1 DESCRIPTION | ||
| 22 | |||
| 23 | See perluse(1) for available command line options. | ||
| 24 | |||
| 25 | C<App::perluse> is not real module because perluse(1) command is just a POSIX | ||
| 26 | shell script and it allows to install this script with cpan(1) or cpanm(1) | ||
| 27 | command. | ||
| 28 | |||
| 29 | =cut | ||
| 30 | |||
| 31 | |||
| 32 | use 5.006; | ||
| 33 | |||
| 34 | use strict; | ||
| 35 | use warnings; | ||
| 36 | |||
| 37 | our $VERSION = '0.0301'; | ||
| 38 | |||
| 39 | |||
| 40 | 1; | ||
| 41 | |||
| 42 | |||
| 43 | =head1 INSTALLATION | ||
| 44 | |||
| 45 | =head2 With cpanm(1) | ||
| 46 | |||
| 47 | $ cpanm App::perluse | ||
| 48 | |||
| 49 | =head2 Directly | ||
| 50 | |||
| 51 | $ lwp-request http://git.io/dXVJCg | sh | ||
| 52 | |||
| 53 | or | ||
| 54 | |||
| 55 | $ curl -kL http://git.io/dXVJCg | sh | ||
| 56 | |||
| 57 | or | ||
| 58 | |||
| 59 | $ wget -O- http://git.io/dXVJCg | sh | ||
| 60 | |||
| 61 | =head1 ENVIRONMENT | ||
| 62 | |||
| 63 | The script sets C<VIRTUAL_ENV> and C<debian_chroot> environment variables so | ||
| 64 | shell prompt line should mark current Perl environment used. | ||
| 65 | |||
| 66 | =head1 SEE ALSO | ||
| 67 | |||
| 68 | L<http://github.com/dex4er/perluse>, perluse(1). | ||
| 69 | |||
| 70 | =head1 AUTHOR | ||
| 71 | |||
| 72 | Piotr Roszatycki <dexter@cpan.org> | ||
| 73 | |||
| 74 | =head1 LICENSE | ||
| 75 | |||
| 76 | Copyright (c) 2011-2014, 2020 Piotr Roszatycki <dexter@cpan.org>. | ||
| 77 | |||
| 78 | This is free software; you can redistribute it and/or modify it under | ||
| 79 | the same terms as perl itself. | ||
| 80 | |||
| 81 | See L<http://dev.perl.org/licenses/artistic.html> |