More Reasons That Perl Sucks

From Programming Perl

There’s no “list” function corresponding to scalar since, in practice, one never needs to force evaluation in a list context. That’s because any operation that wants LIST already provides a list context to its list arguments for free.

Oh really? Is that why the following chunk of code DOESN’T work????

splice((stat $file), 9, 1);

and this one does?

splice(@{[stat($file), ]}, 9, 1);

I hate you perl. More than life itself, I hate you.

Update: Yeah, I just realized the above is equivalent to:

@{[stat($file), ]}[9]

But this still doesn’t change the fact that perl sucks.