Re: Include Files in Perl?

2004-02-13 Thread Wiggins d'Anconia
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:

Re: Include Files in Perl?

2004-02-03 Thread Charlie somerville
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

Re: Include Files in Perl?

2004-02-03 Thread Alexander Blüm
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

Re: Include Files in Perl?

2003-09-27 Thread seldan
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

Re: Include Files in Perl?

2003-09-26 Thread drieux
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

RE: Include files in PERL

2002-11-05 Thread Timothy Johnson
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

RE: Include files in PERL

2002-11-05 Thread Aman Thind
; # 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