Skip to content

Instantly share code, notes, and snippets.

@JARVIS-AI
Last active November 8, 2019 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JARVIS-AI/1f6d2e50ace2268c2c81efb00bb61ac3 to your computer and use it in GitHub Desktop.
Save JARVIS-AI/1f6d2e50ace2268c2c81efb00bb61ac3 to your computer and use it in GitHub Desktop.
Install Plenv - Perl version manager and modules for better world with perl [LOVE PERL]

Love Perl

In this gist you will learn how to make your perl a better place to programme pler apps Obviously you will need some modules

Install Perl - Plenv - CPANM - Perl Modules

Install PLENV

Go to It's repo PLENV

After success installed plenv in your OS

Install perl version you want

plenv install 5.30.0

Rehash it

plenv rehash

See your versions

plenv versions

Make it global

plenv global 5.30.0

Check your perl version

perl -v

Or

perl --version

Be sure to have updated GCC / G++ For this section

Install CPANM

plenv install-cpanm

Now install some cool modules for your perl

Like in NodeJS packages NPM perl has its own like CPANM

We are going to install this install LWP::UserAgent packages

There are some ways :

1

perl -MCPAN -e shell

Then

cpan[1]> install LWP::UserAgent

2

First cpan App::cpanminus Second cpanm LWP::UserAgent

Finished

Thanks for reading Jarvis Mercer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment