title: cpan vs -MCPAN - Perl
body: <p>I'm currently running <code>bash</code> via Cygwin on Windows, and I've come across two different ways to install a Perl module</p>
  
  <pre><code>cpan Name::Module
  </code></pre>
  
  <p>and</p>
  
  <pre><code>perl -MCPAN -e shell
  
  install Name::Module
  </code></pre>
  
  <p>What's the difference between these two methods, and do they offer any advantages or disadvantages over the other?</p>