in reply to Re^2: How should I manage CPAN when using two versions of Perl in my computer?
in thread How should I manage CPAN when using two versions of Perl in my computer?
cd / sudo ln -s /path/to/perl5/perlbrew/perls/perl-VERSION userThe main perlbrew path is found by typing "which perl" while brewing the main perlbrew perl and ignoring the /bin/perl part at the end. Now there are two shebangs with a single character switch that works everywhere:
#!/usr/bin/perl # system perl #!/user/bin/perl # perlbrew perlOn my system:
/usr/bin/perl -le 'print $^V' v5.18.2 /user/bin/perl -le 'print $^V' v5.26.2This symlink has made me very happy! ☺
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How should I manage CPAN when using two versions of Perl in my computer?
by bliako (Abbot) on Jul 01, 2018 at 09:59 UTC | |
by soonix (Chancellor) on Jul 01, 2018 at 13:35 UTC | |
by bliako (Abbot) on Jul 02, 2018 at 09:42 UTC | |
|
Re^4: How should I manage CPAN when using two versions of Perl in my computer?
by bliako (Abbot) on Jul 01, 2018 at 09:35 UTC |