|
|
| There's more than one way to do things | |
| PerlMonks |
Re: Two simple code style advice questionsby vinoth.ree (Priest) |
| on Jan 16, 2013 at 11:02 UTC ( #1013559=note: print w/ replies, xml ) | Need Help?? |
|
I prefer only the following 1.Initializing a hashmy %ntests = map { $_ => 0 } @tests; 2.Setting a string to a value or the empty stringmy $mol = ($n == 42) ? "forty two" : ""
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||