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