Hacker News new | ask | show | jobs
by dragonwriter 2442 days ago
> 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?

1 comments

Yes, indeed — I should have said "scalar element of the array var..." or something.