develooper Front page | perl.beginners | Postings from January 2018

`$#array` vs `scalar @array`

Thread Next
From:
Peng Yu
Date:
January 28, 2018 18:37
Subject:
`$#array` vs `scalar @array`
Message ID:
CABrM6wk9HBSds_qQHDn+Mbts=0VLCjQyh4MQpmS5e1BMsehW7w@mail.gmail.com
Hi,

For the following two expressions, are they of the same speed or one
of them is faster?

`$#array` vs `scalar @array`

-- 
Regards,
Peng

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About