Lengths of Arrays
- Perl creates as many elements as it needs
- Default values are undef
$card[0] = "Ace o' Spades"; $card[52] = "Tea-leaf Jack";
- Indexes 1 thru 51 are undef
| CPU: Perl, Fall 2005 | Perl, Week 2: Arrays, Hashes, Control Structures | #29 |
$card[0] = "Ace o' Spades"; $card[52] = "Tea-leaf Jack";
| Copyright © 2005 Ian Langworth |