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
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 com
ot;Mark Bergeron" <[EMAIL PROTECTED]>
To: "James Kelty" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, June 28, 2001 8:01 AM
Subject: Re: Including other files
> Yes you can.
>
> -Original Message-
> From: "James Kelty"<[EMAIL
Yes you can.
-Original Message-
From: "James Kelty"<[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Date: Wed Jun 27 15:18:23 PDT 2001
Subject: Including other files
>Can you include say a header and footer .cgi file that is just a
>subroutine? The reason I ask, is that
On Wed, 27 Jun 2001, James Kelty wrote:
> Sorry about the confusion. I did mean in the body of the main cgi and
> subsequent cgis later. Not SSIs. Sorry about that.
Well, yes, you can do that. In fact, from a design standpoint, it's
definitely a good idea to take out the common elements of your
Sorry about the confusion. I did mean in the body of the main cgi and
subsequent cgis later. Not SSIs. Sorry about that.
-James
"Brett W. McCoy" wrote:
>
> On Wed, 27 Jun 2001, James Kelty wrote:
>
> > Can you include say a header and footer .cgi file that is just a
> > subroutine? The reason
On Wed, 27 Jun 2001, James Kelty wrote:
> Can you include say a header and footer .cgi file that is just a
> subroutine? The reason I ask, is that it seems to me that it might make
> things (on a larger application) easier if all you had to do was mess
> with the middle content of the pages. Doe
Can you include say a header and footer .cgi file that is just a
subroutine? The reason I ask, is that it seems to me that it might make
things (on a larger application) easier if all you had to do was mess
with the middle content of the pages. Does this make sense at all?
-James