in reply to Re^2: Common Perl Idiomsin thread Common Perl Idioms
You are right about the slurp, a typo on my part.
But the indexing will work. The extra number (int @foo) will just be ignored because there won't be a corresponding lvalue.