sulfericacid has asked for the wisdom of the Perl Monks concerning the following question:
That to me looks like you have a better chance of making a few typos or syntax errors as opposed to the alternative. When I started learning HTML I NEVER went the OO route and any time I download free CGI scripts to see how things were done, it's actually a rarity that they are using it.print scrolling_list('list_name', ['eenie','meenie','minie','moe'], ['eenie','moe'],5,'true',{'moe'=>{'class'=>'red'}}); -or- print scrolling_list('list_name', ['eenie','meenie','minie','moe'], ['eenie','moe'],5,'true', \%labels,%attributes); -or- print scrolling_list(-name=>'list_name', -values=>['eenie','meenie','minie','mo +e'], -default=>['eenie','moe'], -size=>5, -multiple=>'true', -labels=>\%labels, -attributes=>\%attributes);
They all seem to be doing it the "easier" way. I heard objects make a script or program more portable but in terms of a CGI email contact form, when wouldn't typing out the HTML be portable enough?
There must be something I'm missing. For you CGIers out there, which method do you use? Why?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: why use OO nature in CGI?
by jhourcle (Prior) on May 21, 2005 at 07:27 UTC | |
by johnnywang (Priest) on May 21, 2005 at 08:35 UTC | |
by jhourcle (Prior) on May 21, 2005 at 13:36 UTC | |
|
Re: why use OO nature in CGI?
by bart (Canon) on May 21, 2005 at 09:47 UTC | |
by siracusa (Friar) on May 22, 2005 at 13:56 UTC | |
|
Re: why use OO nature in CGI?
by cLive ;-) (Prior) on May 21, 2005 at 06:56 UTC | |
|
Re: why use OO nature in CGI?
by blue_cowdawg (Monsignor) on May 21, 2005 at 12:20 UTC | |
|
Re: why use OO nature in CGI?
by elwarren (Priest) on May 21, 2005 at 21:17 UTC | |
|
Re: why use OO nature in CGI?
by djohnston (Monk) on May 21, 2005 at 17:12 UTC | |
|
Re: why use OO nature in CGI?
by johnnywang (Priest) on May 21, 2005 at 08:39 UTC | |
|
Re: why use OO nature in CGI?
by kwaping (Priest) on May 21, 2005 at 16:17 UTC | |
by herveus (Prior) on May 23, 2005 at 12:08 UTC |