in reply to Re: Re (tilly) 1: grep instead of foreach?
in thread grep instead of foreach?
my %languages; $languages{'python'} = 'boring'; @languages{'perl', 'perl6'} = ('cool', 'real soon now'); # this is short for ( $languages{'perl'} , $languages{'perl6'} ) = ('cool', 'real soon now'); # or $languages{'perl'} = 'cool'; $languages{'perl6'} = 'real soon now';
There are also array-slices.
Read perlman:perldata
-- Brigitte 'I never met a chocolate I didnt like' Jellinek http://www.horus.com/~bjelli/ http://perlwelt.horus.at
|
|---|