Modules and Function..

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cnsabar
    New Member
    • Dec 2007
    • 40

    Modules and Function..

    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
  • KevinADC
    Recognized Expert Specialist
    • Jan 2007
    • 4092

    #2
    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.

    Comment

    Working...