"be consistent" | |
PerlMonks |
Re: Short and Sweet Browser Detectionby KM (Priest) |
on Jun 07, 2002 at 17:27 UTC ( [id://172584]=note: print w/replies, xml ) | Need Help?? |
I would suggest making your structure a hash, so you don't have to loop. With a long list (like if you add Lynx, Chimera, iCab, DoCoMo, etc...) the looping is uneeded.
May serve you well. Just make sure the keys are the user agent info you want, and manipulate $ENV{USER_AGENT} to remove any OS info (assuming you don't want that).
Cheers,
In Section
Cool Uses for Perl
|
|