in reply to How to use localtime() in another function ( in list context)

Alternatively, you could bypass the prototype (by using "&") and pass it what it actually wants, a ref to an array.

my $timestring = &strftime('%c', [ localtime() ]);