Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: calling a perl file from a perl script

by j3 (Friar)
on Apr 06, 2007 at 20:37 UTC ( #608754=note: print w/replies, xml ) Need Help??


in reply to calling a perl file from a perl script

Hi hodashirzad,

As jonadab says, writing your own modules is very likely the way to go. Happily, with Perl, easy things tend to be easy, and writing modules (i.e., sticking your functions in .pm files) is a walk in the park. :)

I believe many folks create their own ~/perllib directory, and drop their modules (ex. MyModule.pm) in there. In your main script code, you tell perl how to find them by putting use lib '/home/you/perllib'; at the top (before the use MyModule; line).

Edit: To get started, have a look in the Tutorials section of this site, paying special attention to Simple Module Tutorial.

  • Comment on Re: calling a perl file from a perl script

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://608754]
help
Chatterbox?
[erix]: indeed had to be( time make check-world ) > test_run2.output 2>&1
[erix]: probably misremembered because of 2>&1 |
[erix]: oh nice, can do |& nowadays. Learned something new after all
LanX flagelates erix with a signed markov chain
[erix]: oh well, it's holy week, right? Thick-skin week. I just read that in the Philippines, some RCs practice self-crucifixion. Tough cookies I'd like to see

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (10)
As of 2017-03-23 08:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (285 votes). Check out past polls.