Depending on the number of .hts files that need to be converted, I'd go with either of the following:
- one of the standard Perl templating solutions (and I'm not going to name them because the all have their pro's and con's, which I can't really apply because I don't know enough about your situation).
- Write a custom mod_perl handler that mimics SybPerl that you're using now (a drop in replacement if you will). Taking out <SYB></SYB> sections out of HTML and evalling them is not such a big thing (apart from certain security implications, but those existed already in your current solution). And writing replacements for the ws_xxx functions shouldn't be such a big problem (with exception of ws_rpc probably, but that's because that accesses functionality that you won't find in MySQL).
If the number of .hts files in in the 10's or 20's, I would go for the first. If there are more than 100 .hts files to convert, I would probably go for the latter. If the number is inbetween, I wouldn't know.
One note of warning: Sybperl was basically Perl 4 if I remember correctly. You might encounter some odd problems when converting to a "recent" Perl.
Hope this helps.
Liz
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.