>I'd either leave that as (localtime)[3,4,5] (please read the man page for
>Time::Object), or understand that there's absolutely no need to separate
>off the variables like that in an object oriented interface:

>   my ($day, $month, $year) = (localtime)[3,4,5];

>becomes:

>   my $date = localtime;

>And use $date->day (or month or year) later when you need to.

But people *like* to be able to put things in simple variables.
It's more convenient to type $day than $date->day for repeated
usage.

--tom

Reply via email to