http://qs1969.pair.com?node_id=11108103


in reply to sprintf( @_ ) doesn't do what I want!

Unlike printf, sprintf does not do what you probably mean when you pass it an array as your first argument. The array is given scalar context, and instead of using the 0th element of the array as the format, Perl will use the count of elements in the array as the format, which is almost never useful.

https://perldoc.perl.org/functions/sprintf.html