note Crackers2 <blockquote> the situation of declaring a proto with sub foobar($); and then calling it with foo(@a) and expecting that to throw an error rather than evaluating the array in scalar context. </blockquote> <p>I'd argue that the more common expectation is that this should just use the first element of <c>@a</c>, which is what would happen if there was no prototype.</p> <p>Which is what I've seen often quoted as the biggest problem with perl prototypes; instead of enforcing subroutine arguments, it changes the way arguments are parsed.</p> 861966 862277