The Equal-Arrow
- The equal-arrow or big-arrow (=>) is the same as a comma, but it looks nicer
my %fruit = ( 'Apple', 'red', 'Orange', 47e9 );
- or..
my %fruit = (
'Apple' => 'red',
'Orange' => 47e9,
);
| CPU: Perl, Fall 2005 | Perl, Week 4: More Arrays, Context, Subroutines, Lexical Variables | #47 |
my %fruit = ( 'Apple', 'red', 'Orange', 47e9 );
my %fruit = (
'Apple' => 'red',
'Orange' => 47e9,
);
| Copyright © 2005 Ian Langworth |