--- Marc Sacks <[EMAIL PROTECTED]> 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. >
Hi Mark, the best practice/standard way to get an array length is: print scalar @array_name,"\n"; or my $array_lnght = scalar @array_name; __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>