| Perl Programming | ||
|---|---|---|
| Hashes | ||
my %wheels = (unicycle => 1,
bike => 2,
tricycle => 3);
$wheels{car} = 4; # Creates a new key/value pair
$wheels{van} = 4; # Creates another new key/value pair
delete $wheels{unicycle};
|
||
| Previous | http://stuff.mit.edu/iap/perl/ | Next |