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;
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.