© William "Bo" Rothwell of One Course Source, Inc. 2019
William "Bo" RothwellBeginning Perl Programminghttps://doi.org/10.1007/978-1-4842-5055-6_3

3. Array Variables

William “Bo” Rothwell1 
(1)
San Diego, CA, USA
 

Array Variables

Array variables are used to store lists (groups) of scalar data. The following describes important information about array variables:
  • The variable starts with a “@” symbol (not a $ symbol like scalar variables).

  • The variable name rules (start with an alpha or underscore character, use only alphanumeric & underscore chars) for scalar variables also apply to array variable names.

  • Array sizes don’t have to be declared; Perl dynamically takes care of the size of the array.

  • Individual scalar data within the array are referred to as ...

Get Beginning Perl Programming: From Novice to Professional now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.