> It's trivial to understand the difference between the scalar var $foo and the array var $foo[0] if someone explains it to you or you read it;
I don't Perl much, but aren't those both scalars and @foo is an array variable. $foo[0] would be a scalar that is the first element of @foo, right?