No such thing as a small change | |
PerlMonks |
Re: Unicode in almost any Browser?!?by chromatic (Archbishop) |
on Jan 17, 2001 at 10:25 UTC ( [id://52468]=note: print w/replies, xml ) | Need Help?? |
Is there any particular reason (bug workaround, stylistic evolution, personal preference, difference in functionality of which I'm not aware) some of the param accesses use the logical or operator and others use a defined check?
I prefer the form: my $bcol = $q->param("bcol") || "03072B"; It is concise and easy to read. Consistency is very important, especially when debugging.
In Section
Cool Uses for Perl
|
|