Do you know where your variables are? | |
PerlMonks |
Re: Re: Bulk HTML Mungingby Ovid (Cardinal) |
on Aug 14, 2003 at 05:53 UTC ( [id://283766]=note: print w/replies, xml ) | Need Help?? |
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, New address of my CGI Course.
In Section
Code Catacombs
|
|