Loading ...
Sorry, an error occurred while loading the content.
 

Re: Undefined subroutine

Expand Messages
  • Warren Young
    ... Rename it to files.pm, and put it in the same directory as your global.asa. Say use files at the top of global.asa. Restart the web server. ... Within
    Message 1 of 2 , Apr 19, 2004
      Søren Tauber Lassen wrote:

      > files.pl:

      Rename it to files.pm, and put it in the same directory as your
      global.asa. Say "use files" at the top of global.asa. Restart the web
      server.

      > sub loadFileText

      Within files.pm, say "require Exporter;" and read the documentation on
      the Exporter module to find out how to use it to export loadFileText
      into the global namespace.

      > menus.pl:

      This should probably be another Perl module, not a *.pl file.

      > require "../../cgi-bin/soren/files.pl";

      If you need routines from files.pm here, you shouldn't need a require or
      use statement here if menus.pm is loaded from another module that does
      load in files.pm.

      ---------------------------------------------------------------------
      To unsubscribe, e-mail: asp-unsubscribe@...
      For additional commands, e-mail: asp-help@...
    Your message has been successfully submitted and would be delivered to recipients shortly.