Re: Including External Pages

2002-07-03 Thread perl-dvd
where local will make a copy of a current variable which is already in scope for use inside the block (including system vars and globals). David - Original Message - From: "Todd Wade" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 03, 2002

Re: Including External Pages

2002-07-03 Thread Todd Wade
the docs that show modification of $/ in action have the corresponding code wrapped in a block, i.e. { local $/ = undef(); $_ = }. Quick quiz: can anyone explain why? Todd W. > > - Original Message - > From: "Todd Wade" <[EMAIL PROTE

Re: Including External Pages

2002-07-03 Thread perl-dvd
top and bottom. In short, it gives the programmer much more control before simply printing the file. Regards, David - Original Message - From: "Todd Wade" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 02, 2002 6:19 PM Subject: Re: Including E

Re: Including External Pages

2002-07-02 Thread Todd Wade
[EMAIL PROTECTED] wrote: > open(FH, " for write, >> for > append local $/ = undef; # slurp mode (allow for shoving the whole file > into a scalar) > my $faq = ; # slurp the whole file into this scalar. > close(FH); > open(FH, $file) or die("open $file: $!"); print(); # print() takes a list. D

Re: Including External Pages

2002-07-01 Thread perl-dvd
PROTECTED]> Sent: Sunday, June 30, 2002 3:27 PM Subject: Including External Pages What would I use to include external pages in my script? (like if I wanted to print the contents of faq.txt or log.cgi in my script) Is there a way to do the above except to include a php script instead of a t

Re: Including External Pages

2002-06-30 Thread Kyle Babich
Yes, but I'm trying to do this from within a perl script. How would the file get parsed as .shtml and .cgi (or .pl)? On Sun, 30 Jun 2002 18:18:12 -0400, "Jim Lundeen" <[EMAIL PROTECTED]> said: > check out Server-Side Includes - particularly Include Virtual and Exec > CGI > (execute CGI). > > He

Including External Pages

2002-06-30 Thread Kyle Babich
What would I use to include external pages in my script? (like if I wanted to print the contents of faq.txt or log.cgi in my script) Is there a way to do the above except to include a php script instead of a txt file and have both the cgi and php function correctly? Thank you, Kyle -- To uns