PhilBurt.com - Perl

Download | Log | Notes


Retrieve the number of elements in an array @ar:

  • scalar @ar
  • $#ar + 1
  • my $size = @ar;
  • 0 + @ar


Download | Log | Notes
Last Updated: 12/01/2021

All electronic content (graphic, sound, code and HTML) on this page was captured, edited, and/or created by PhilBurt, unless otherwise noted.