Your skill will accomplish what the force of many cannot |
|
PerlMonks |
CGI.pm HTML shortcutsby petdance (Parson) |
on Apr 20, 2001 at 00:40 UTC ( [id://73986]=note: print w/replies, xml ) | Need Help?? |
Well, of course there's no way that generating code programatically
is going to be any faster than static strings. However,
I have to say it over and over: Speed is not everything. Before you
worry about speed, figure out how slow your solution is.
Chances are it's unnoticeable.
You can see the entire structure of the page right there. I can't goof up closing TABLE tags (a particular bane of Netscape), everything has to be well-formed, etc etc etc. Is that worth a few milliseconds of execution time? In my book, yes.
xoxo, # Andy Lester http://www.petdance.com AIM:petdance %_=split';','.; Perl ;@;st a;m;ker;p;not;o;hac;t;her;y;ju'; print map $_{$_}, split //, 'andy@petdance.com'
In Section
Seekers of Perl Wisdom
|
|