No, it will not return the number of elements in an array!!!
$#search will tell you the last index position.
So a one element array 'my @arr = qw/ one /;'
$#arr will return 0 which is false, not what the poster wanted
| Mynd you, mønk bites Kan be pretti nasti... |
In reply to Re: Re: Checking Arrays
by grep
in thread Checking Arrays
by kidd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |