Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Re: the "@" indicates plural hence "s" is redundant

by bart (Canon)
on Oct 30, 2002 at 23:47 UTC ( [id://209282]=note: print w/replies, xml ) Need Help??


in reply to Re: the "@" indicates plural hence "s" is redundant
in thread the "@" indicates plural hence "s" is redundant

I have another reason for not using an "s": I generally write
$x = $item[3];
because
$x = $items[3];
doesn't make any sense.

Replies are listed 'Best First'.
Re: Re: Re: the "@" indicates plural hence "s" is redundant
by Notromda (Pilgrim) on Oct 31, 2002 at 04:37 UTC
    $x = $items[3];

    $x is the third element of this collection of items. No problem. Except my off by one error. ;)

    Really, in my mind, as I'm typing $items, I'm thinkink that this is a collection of items, but now I only want this [3] particular one. So keeping the "s" makes sense. YMMV

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://209282]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2024-04-16 22:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found