Perl Help For Newbie

Aaron Peterson aaron at alpete.com
Mon Apr 26 13:22:02 PDT 2004


> I understand.  However, because my source file is already an HTML doc, I
> would have to some how extract the relevant parts into the data file you
> describe.  Would this still be the preferred way to do it?

The decision is up to you, really.  If it were up to me, and I could
forsee having to go through this process again in the future, I would do a
little more work up front to save time on subsequent repetitions.  If this
is really truly a one time thing, you can perhaps make your regex good
enough to do the substitution.  As I've mentioned, that is often difficult
with xml html (not impossible, but difficult).

Aaron


More information about the freebsd-questions mailing list