What is X in Perl?

Tib - Apr 14 '21 - - Dev Community

What is pip or gem?

cpanm or cpm

Where is my REPL?

Use perl debugger perl -de2 or one of the REPL (e.g. reply)

Is there any gemfile or requirements.txt?

cpanfile or cpmfile (NEW!)

(and more... e.g. with dzil)

What is package.json?

META.json and META.yml see doc

And gemfile.lock or package-lock.json?

cpanfile.snapshot or carton.lock

And what about Virtualenv?

Virtual envs are not as much vital in Perl, but there is plenv or perlbrew

Bundler?

carton

Other tips for Perl beginners

  • Usually no variable methods (variable.method) but methods on variables (method(variable)) e.g. split
  • ; is mandatory (with few exceptions but please forget)
  • Indentation not meaningful
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .