Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: How to run perl5.21.3 as "perl"

by tobyink (Canon)
on Aug 18, 2014 at 11:06 UTC ( #1097824=note: print w/replies, xml ) Need Help??


in reply to How to run perl5.21.3 as "perl"

I don't know exactly what's causing the problem, but a workaround might be to set up a shell alias. Most Unix shells (bash, tcsh, etc) support them, though the syntax to define them varies from shell to shell, so you'd need to check your shell's manual.

Replies are listed 'Best First'.
Re^2: How to run perl5.21.3 as "perl"
by syphilis (Bishop) on Aug 18, 2014 at 11:37 UTC
    I was half expecting it might have been something obvious that I was missing.
    Something in your reponse made me suddenly think "hang on ... I'm doing this over an ssh connection". So I decided to see whether the same problem existed when I sat at the computer's terminal (using identical path) and accessed it directly ... and it didn't !! Everyting works as expected when I'm sitting at the terminal.

    But what makes it even weirder is that I have other perls under ~, and those perls *are* accessible as "perl" over the ssh connection.
    For example:
    sisyphus-sis@debian-sis:~$ echo $PATH /home/sisyphus-sis/perl520-m64-multi/bin:/usr/local/bin:/usr/bin:/bin: +/usr/local/games:/usr/games sisyphus-sis@debian-sis:~$ which perl /home/sisyphus-sis/perl520-m64-multi/bin/perl sisyphus-sis@debian-sis:~$ perl -le 'print $^X' /home/sisyphus-sis/perl520-m64-multi/bin/perl sisyphus-sis@debian-sis:~$
    No problems with that (or any of the 7 other installations of) "perl" over the ssh connection. It's just the bleadperl that won't play ball.
    Thanks for the reply tobyink

    Cheers,
    Rob

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1097824]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2021-10-24 05:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (88 votes). Check out past polls.

    Notices?