title: How to include and use pm files in perl
body: <p>Ok this is how the main file uses those include pm files</p>
  
  <pre><code>use Dancer;
  use Net::OAuth2::Client;
  use HTTP::Request::Common;
  
  sub client {
     Net::OAuth2::Client-&gt;new(
       '0', # OAuth 2.0 client_id
       '1234567890abcdef', # OAuth 2.0 client_secret
       site =&gt; 'http://www.deviantart.com',
       authorize_path =&gt; 'https://www.deviantart.com/oauth2/draft15/authorize?response_type=code',
       access_token_path =&gt; 'https://www.deviantart.com/oauth2/draft15/token?grant_type=authorization_code',
       access_token_method =&gt; 'GET',
     )-&gt;web_server(
       redirect_uri =&gt; uri_for('/auth/deviantart/callback')
     );
  }
  </code></pre>
  
  <p>I have put those PM files in same directory as this but it fails because can not locate</p>
  
  <p><img src="https://i.stack.imgur.com/UpKhW.png" alt="enter image description here"></p>
  
  <p>Those files begins like this</p>
  
  <pre><code>package Net::OAuth2::Client;
  package HTTP::Request::Common;
  package Dancer;
  </code></pre>