Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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?



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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: