Nov 13, 2001, 3:58 AM
Post #3 of 6
Well, yes and no. How's that for waffling on the subject? I am a big fan of object oriented reuseable code. Not cut and paste. Truly reuseable. Since CGI.pm was written for object oriented use, I have made a concerted effort to use it in this fashion. I make a new CGI object, call it's methods, set and get it's attributes. I do this not because someone tells me to, but rather because it is just a good practice and promotes OOPerl.
Do you have to use it? No. Generally, programmers only do what is required to get the project done, and then move on. I find this can mean that I am forever cutting and pasting code and try to avoid it like the plague. You have to do whatever you are comfortable with. Try to keep improving your skills and don't be complacent with where you are at. You will go much farther in the future.
$a="c323745335d3221214b364d545a362532582521254c3640504c37292f493759214b3635554c3040606a0",print unpack"u*",pack "h*",$a,"\n\n"