Reputation: 23
Let me start with giving an example of what I'm dealing with first:
I often call existed Perl scripts from previous engineers to process some data, and then proceed further with my script. I either use system
or back-ticks
to call other people scripts within my script.
Now, I'm wondering if I rewrite those scripts as packages and use require
or use
to include those packages in my script, will it increase the processing speed? How big of a difference would it be?
Upvotes: 1
Views: 50
Reputation: 386331
Benefits:
perl
, compile the script and the module it uses. That's a couple of seconds minimum, but it could be much larger.Downsides:
Upvotes: 2