Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Bulk HTML Munging

by chanio (Priest)
on Aug 14, 2003 at 03:57 UTC ( [id://283758]=note: print w/replies, xml ) Need Help??


in reply to Bulk HTML Munging

Thank you 4 this very nice brainstorming + good lesson of good code 4 us, the newbies!
The style resembles very much to *NIX's , also!

Replies are listed 'Best First'.
Re: Re: Bulk HTML Munging
by Ovid (Cardinal) on Aug 14, 2003 at 05:53 UTC

    Thank you. However, if you're looking for great code, be warned that the above code used a lot of globals (well, lexicals whose scope covers the entire file). If later on I wanted to reword this into a proper module, those might cause me problems. Fortunately, they're always "read only" in the code and that minimizes things but global variables are still a good thing to avoid, if feasible.

    Also, my read_config was actually put in there so a project manager could easily use this code. In reality, there are better ways of getting the "old" and "new" data into the program. I really should turn this into an OO module and make those values that you can set in methods.

    Cheers,
    Ovid

    New address of my CGI Course.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://283758]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2024-04-24 09:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found