Why don't Perl commands work after I run `plenv local system`?

204 views Asked by At

On a CentOS 6.5 machine, I have two versions of perl installed through plenv.

When I am running perl 5.8.8, I can run any perl command fine in the shell such as

plenv local 5.8.8
perl -e "print 'hello';"
hello

But When I switch to alias "system"

plenv local system
perl -e "print 'hello';"

The command doesn't execute and feeds into a new line as if the perl command is waiting for input. Ctrl-D doesn't end input, either.

So my questions are,

  • is this an old perl behavior?
  • How do I check the version of an alias perl? (typing perl -v doesn't execute, as I described above)

update: Results to commands requested in comments

$: plenv version 
system (set by /home/myuser/.perl-version) 
$: type perl 
perl is hashed (/opt/plenv/shims/perl) 
$: plenv local 5.8.8 
$: plenv version 
5.8.8 (set by /home/myuser/.perl-version) 
$: type perl 
perl is hashed (/opt/plenv/shims/perl)
0

There are 0 answers