title: My Perl code does not seem to work with .lib?
body: <p>I'm new to both Perl and its feature of .lib. </p>
  
  <p>I made this simple subroutine and saved it as a file with an extension of .lib</p>
  
  <pre><code>sub shorterline {   
  print "Content-type: text/html\n\n";
  }
  
  1;
  </code></pre>
  
  <p>As I tried to insert the subroutine into the Perl file with an extension of .cgi below, it doesn't work somehow:</p>
  
  <pre><code>#!/usr/bin/perl
  require 'mysubs.lib'; 
  
  
  &amp;shorterline; 
  print "Hello, world!";
  </code></pre>
  
  <p>I gave the .cgi the chmod permission, but the .cgi still doesn't work, what seem to be the problem ?</p>