in reply to calling a perl file from a perl script

I would not call your question "stupid."

I will, however, chime in with the chorus singing "use a module." Modules, as I'm sure you know, are Perl's (approximate) equivalent of what are called "libraries" in most compiled languages.

Now, before doing this kind of work, it's probably wise to poke around CPAN or PPM to see if somebody has already written a module for what you're doing. If not, one could find a module doing something similar and use it for inspiration, giving proper credit to the creator of the module you're plagiarizing using as a muse.

emc

Insisting on perfect safety is for people who don't have the balls to live in the real world.

—Mary Shafer, NASA Dryden Flight Research Center
  • Comment on Re: calling a perl file from a perl script

Replies are listed 'Best First'.
Re^2: calling a perl file from a perl script
by Anonymous Monk on Aug 01, 2008 at 06:21 UTC
    Hi,I just wan to know that if 2 pm files are used in a script then i have to call both pm file in pl file so how it is possible.
      Your question did not parse. Did you already read perlmod? use? require?
      []s, HTH, Massa (κς,πμ,πλ)

      It sounds like you're asking how to use two different modules. That's as simple as using two use statements. e.g.

      use strict; use warnings; use Newmodule; use Othermodule;