tondaqakin has asked for the wisdom of the Perl Monks concerning the following question:

I want to create standalone executable file, but I need to call some subroutines which do not belongs to my modules or Perl modules. Is there way how to define these calls?

Replies are listed 'Best First'.
Re: Subs call
by almut (Canon) on Mar 02, 2010 at 20:52 UTC

    As there is no generic way to call routines that do not belong to your modules, it would be essential to know where they do belong to, in order to answer your question.  There are dozens of methods like making calls into (dynamically loaded) shared libs, or calling remote procedures via RPC, CORBA, SOAP, web services, etc...

Re: Subs call
by Khen1950fx (Canon) on Mar 02, 2010 at 22:12 UTC
    I can't give you a specific answer, but I would use h2xs to create a module. Then add the libs that do not belong to your modules or Perl modules to the build directory. The libs containing the subroutines have to show up in the manifest after you run make manifest in order to call the subroutines that you want. Then use modules such as Find::Lib and PAR. See Can PAR bundle all its prerequisites?