Hi Rajeev,
it is the approach of perl4: without modules,
You can use this but it will be better for you if created a module
(or modules) from the included file and use that module.
the performance difference is neglectable compared to the runtime of a
script.
see
perldoc perlmod
-- Gabor
Rajeev Rumale wrote:
>
> Hi,
>
> I have a similar situation in my project. I have created a file like
> mylib.pl and I put all my subroutines into it.
>
> In every page which I use i just add a line "require mylib.pl" IT works
> fine for me.
>
> I would like to know
> 1. if this approch is Good
> 2. Is their any performance problem compared to writing the subs directly in
> "main".
> 3. Is there any better approch.
>
> with regards
>
> Rajeev Rumale
--
Gabor Szabo
http://www.tracert.com/
Web backend development
Phone: +972-(0)54-624648