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 reply to Re: Two simple code style advice questions
by vinoth.ree
in thread Two simple code style advice questions
by eyepopslikeamosquito
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |