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

You could use the following slightly skanky trick to appease the prototype that is provided for strftime:

my $timestring = strftime('%c', @{[localtime()]});

which creates a temporary array reference then dereferences it.

True laziness is hard work

Replies are listed 'Best First'.
Re^2: How to use localtime() in another function ( in list context)
by drecaise (Initiate) on Feb 03, 2011 at 08:30 UTC
    Aah that's it :) Thank you very much!