in reply to the "@" indicates plural hence "s" is redundant
In Perl 5, sigils are more like qualifier adjectives that plural modifiers. I always read $ as "that" and
@ as "those". So using plural forms for arrays
makes perfect sense to me:
$num = 7; # that num is 7 @nums = 1..7; # those nums are 1..7 @squares # those squares = map $_**2, @nums; # are those nums squared $max # that max = $squares[6]; # is that element at index 6 of squares
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: "Redundant" ne "Bad"
by thunders (Priest) on Oct 30, 2002 at 20:43 UTC | |
by Acolyte (Hermit) on Oct 31, 2002 at 00:20 UTC | |
by tomhukins (Curate) on Oct 31, 2002 at 11:48 UTC | |
Re: "Redundant" ne "Bad"
by earthboundmisfit (Chaplain) on Oct 31, 2002 at 00:48 UTC | |
by Juerd (Abbot) on Oct 31, 2002 at 08:34 UTC |
In Section
Meditations