in reply to forcing array to scalar context in string interpolation?

No need to put everthing inside double quotes. Try
print scalar @array, "\n";

-Mark