Pages

Showing posts with label list. Show all posts
Showing posts with label list. Show all posts

Wednesday, August 7, 2013

Multi-Dimensional Arrays in Perl


Introduction to Arrays

A Perl array is a data type that allows you to store a list of items. You create them by assigning them to an array variable. The array variable is identified by a @ prefix. To define a list of dates, we do this:

@array = ('20020701', '20020601', '20020501');
This is a one-dimensional array.