Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: my $x or my ($x)

by johngg (Abbot)
on Apr 04, 2006 at 16:45 UTC ( #541181=note: print w/ replies, xml ) Need Help??


in reply to Re: my $x or my ($x)
in thread my $x or my ($x)

I know that it is really not necessary but I have got into the habit when counting elements in a list of doing

my $elems = scalar @list;

rather than

my $elems = @list;

just to make it crystal clear for "those that come after" what is going on. That the question gets asked demonstrates why such practices can be helpful.

Cheers,

JohnGG


Comment on Re^2: my $x or my ($x)
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2014-09-18 05:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (108 votes), past polls