Subject: | |
From: | |
Reply To: | |
Date: | Thu, 22 Feb 2001 00:11:44 EST |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Neil asks:
> Perl certainly is a wonderful "scripting" language.
> Is there a way to download a webpage AND all it's graphics, and e-mail same
> as an HTML document using, say SENDMAIL, all within a PERL script?
Even if there were such a method to do this -- and I doubt there's a simple
way to do it -- I'm not altogether sure that you would want to try very hard.
HTML is organized so that it is really nothing much more than a "backbone"
script itself, but one with tagged pointers to the auxiliary files (images,
sounds, etc.) that it needs to complete the page. These auxiliary images are
were never meant to be imbedded inline files within the HTML text itself.
Rather, they are files that *have* to be read from some other directory,
either locally or remotely. The engineering problem becomes specifying the
local directory(ies) and populating them with the necessary files all in one
email.
PDF, on the other hand, was originally designed to have exactly the opposite
architecture. All images are inline files. In its most general construction,
PDF requires nothing from the outside world beyond the information held
within the immediate file, with the possible exception of fonts, which you
supposedly would already have in the reader. If the desired result is to
email a complete file, ready for display without requiring further downloads,
PDF would probably be the way to go.
Wirt Atmar
|
|
|