Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Install Dancer2 using cpanm

  • Install cpanm if you don’t have it yet:
$ curl -L https://cpanmin.us | perl - App::cpanminus
  • Install Dancer2:
$ cpanm Dancer2

Note, during the following pages I am going to use the word Dancer, however the name of the package we are using is Dancer2 and there is also a package called Dancer which was the first incarnation of this framework.

Check the installed version

$ perl -MDancer2 -E 'say $Dancer2::VERSION'
2.1.0

You might have a newer version, but this should be the minimal version to be used.