By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,777 Members | 1,755 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,777 IT Pros & Developers. It's quick & easy.

Modules and Function..

P: 40
Hi All.,

I am using lot of function in defined modules...

I need to know which one will be fast

1. Calling function inside the program
2. Calling function by using modules in the program

Thanks,
Sabarish
Dec 6 '08 #1
Share this Question
Share on Google+
1 Reply


KevinADC
Expert 2.5K+
P: 4,059
After a module has been loaded into memory the functions/methods are ready to use in your perl programs. There might be a very miniscule performance difference between having functions in the main program and functions in modules but I don't think its anything to worry about or even take into consideration unless you really need every last bit of performance from your program. Try using the Benchmark module to run some tests.
Dec 6 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.