HP3000-L Archives

February 2001, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Wirt Atmar <[log in to unmask]>
Reply To:
Date:
Thu, 22 Feb 2001 00:11:44 EST
Content-Type:
text/plain
Parts/Attachments:
text/plain (28 lines)
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

ATOM RSS1 RSS2