It gives you an undef in case of a missing result, but it will only show the "first" element of the hash, array or list and you will loose the possibility to recognize multiple results.
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
In reply to Re^5: mystery function & Odd number of elements in anonymous hash
by CountZero
in thread mystery function & Odd number of elements in anonymous hash
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |