In the above example I'd like to get rid of the @lt variable and call localtime() directly from strftime(). Thing is that I don't know how to call it in a way that will return an array. I've been fiddling with it but couldn't figure out how this is done.#!/usr/bin/perl -w use strict; use warnings; use Date::Format; my @lt = localtime(); my $timestring = strftime('%c', @lt);
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |