Re: PERL's equivalent to an "include file"



Please bottom post...

Shelly Brown wrote:
> I would like to display the daily calendar information from a perl script:
> http://webapps.sbuniv.edu/daycal/ within an html page so it looks like this:
> http://www.sbuniv.edu/. Right now I have to manually enter the calendar
> information. I would like for it to be dynamic. Make sense?
>

Most likely your web server software has the ability to parse pages, aka
server parsed pages, and you can probably make an include call exec on a
program on the local filesystem. The program should output on STDOUT the
HTML code for the calendar. Depending on which webserver you run you may
also be able to handle this directly with ASP or the like, but then that
wouldn't be Perl.

Going the embedded Perl route is probably more difficult and not the
direction to head...

http://danconia.org

> On 9/27/05, Shelly Brown <shellylbrown@xxxxxxxxx> wrote:
>
>>I would like to include a PERL file within an html or asp file. How do I
>>do that? I'm working on a Windows server.
>>--
>>Shelly Brown
>>
>
>
>
>
> --
> Shelly Brown
>
.



Relevant Pages

  • Re: Walking a tree and extracting info... Problems
    ... Learn to use the Perl debugger and to use the ... foreach $file (@thefiles) { ... push @lines, $_; # push the data line onto the array ... Perl has allocated "@lines" once for the whole program; when you process the next file in the directory you push the lines on the bottom; the match for the HTML title then fires every time. ...
    (comp.lang.perl.misc)
  • Re: HTTP Filtering and Threads...
    ... You are trying to parse HTML with regular expressions. ... This is not Perl. ... # Some irrelevant code stuff... ... foreach $userID { ...
    (comp.lang.perl.misc)
  • RE: question
    ... well it's really HTML that's the problem. ... > was whether perl was appropriate, not how to do it in perl. ... > this e-mail message or disclose its contents to anybody else. ... > should check this e-mail and any attachments for viruses. ...
    (perl.beginners)
  • Re: How to write to drive A: from CGI Perl
    ... >> If that does not look weird to you, then please go back to basics. ... Please (assuming that the quoted text is an actual excerpt from the HTML ... You will have a better version of Perl? ... for HTML or Perl or CGI or anything. ...
    (comp.lang.perl.misc)
  • Re: Two Perl programming questions
    ... directory names using Perl. ... I can debug through my Perl script and ... How would Perl create the dynamic HTML that I ... Perl is general purpose programming language. ...
    (comp.lang.perl.misc)