Marc Sacks wrote:
> I needed to find out the length of an array and did it by referencing
> the array in scalar context. However, "use warnings" indicated that this
> is a deprecated feature.  Is there a non-deprecated way to do this
> (other than looping through the whole array until I run out of
> elements)? Thanks.

Using an array in scalar context is *not* deprecated.

Since you haven't shown any code I would have to guess that you are using
defined() on an array which *is* deprecated.



John
-- 
Perl isn't a toolbox, but a small machine shop where you can special-order
certain sorts of tools at low cost and in short order.       -- Larry Wall

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to