in reply to calling perl subroutines in other files

One is to evaluate the file containing the subroutine:
   eval `cat subroute_file.pl`;
The subroutine will then be available to you. No "use" or "require" required.
  • Comment on Re: calling perl subroutines in other files

Replies are listed 'Best First'.
•Re^2: remote subroutine call
by merlyn (Sage) on Sep 26, 2004 at 10:56 UTC

      ....and evaluate why would you do that when you should be required to use the lovely module architecture ;-)

      As merlyn notes do is better than eval cat which is not portable.

      cheers

      tachyon