Scenario 1: I have one wrapper Perl script which uses another Perl module and invokes a function in that module.
Scenario 2:
Now I have the same wrapper script and the module is implemented as Perl script. Here, instead of using module I am simply calling system("perl anotherscript.pl")
.
Both do the same function, but I am seeing a little bit delay in the second scenario.
Why is it so? Is it expected or is it something to do with my code?