in reply to Re: Re (tilly) 1: Which is better - one large file or multiple files?
in thread Which is better - one large file or multiple files?

It is better to use Perl's AUTOLOAD for delayed loading. After all that is what it is for.

If you just want to be able to take your program and force lazy loading of subroutines, you can use AutoLoader to do the loading and AutoSplit to split your file. That will perform much better on repeated calls to the function, and you can develop with a single huge file if you want.

  • Comment on Re (tilly) 3: Which is better - one large file or multiple files?