Define an array variable called @myList. : Array Definition « Array « Perl
- Perl
- Array
- Array Definition
Define an array variable called @myList.
#array variable is preceded by @; this tells Perl that we want an array, not a scalar.
@myList = ();
Related examples in the same category