Charlie somerville wrote:
Yeah, that looks pretty good
Alexander Blüm [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
that doesn't sound too good. sounds like loading all into memory, split
it up into arrays and then finally printing the contents to the browser.
bleh!
how aout this:
just use this code:
===START CODE===
$filename=my_file; #Set the filename
open(A,$filename) || die Waaah! The open didn't work: $!; #Open the file
in $filename or do what MSWindows always does
@a=A; #Put the filehandle A in the array @a;
print Content-Type: text/html\nPragma: No-cache\n\n; #Take
that doesn't sound too good. sounds like loading all into memory, split
it up into arrays and then finally printing the contents to the browser.
bleh!
how aout this:
#somewhere in the code:
include(/includes/header.html);
...
include(/includes/footer.html);
### subroutine
sub include{
my
Drieux [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Thursday, Sep 25, 2003, at 17:44 US/Pacific, seldan wrote:
[..]
However, I am trying to keep this site as modular and easy to maintain
as
possible and cannot seem to find the right equivalent for a basic PHP
include
On Thursday, Sep 25, 2003, at 17:44 US/Pacific, seldan wrote:
[..]
However, I am trying to keep this site as modular and easy to maintain
as
possible and cannot seem to find the right equivalent for a basic PHP
include or require function. I use several variables that stay
the same
throughout
I think 'use' is what you're looking for. But just in case,
perldoc -f require
perldoc -f use
perldoc perlmod
On the last one, I would recommend reading the first section and then
skipping down to the Perl Modules section. Then you can go back over the
whole thing. Just to give you a taste
;
#
This prints H e l l o W o r l d ! too.
Take your pick :)
Thanks
Aman
-Original Message-
From: Timothy Johnson [mailto:tjohnson;sandisk.com]
Sent: Wednesday, November 06, 2002 9:17 AM
To: 'Johnstone, Colin'; '[EMAIL PROTECTED]'
Subject: RE: Include files in PERL
I think 'use