[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] How To Scripts

On Tue, Jun 22, 1999 at 11:50:55PM -0500, ken towry wrote:
> Instead of treating each HTML file individually, create the general
> parsing engine, illustrated in Figure 10-1. This engine will allow you
> to write Perl subroutines to handle each HTML tag encountered. For
> example, the subroutine inputHandler could be called every time an INPUT
> tag is encountered. This handler could change the value of the tag or,
> in the case of a radio button, turn it on or off. The handlers will be
> expected to accept text from the file and return the text that is sent
> to the client. The handler may return different text than it received as
> input.

I recommend ditching this code and using the HTML::Parser module, which, if
it's not already on your system, you can get from CPAN.


===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org