John W. Krahn wrote:
> Bernhard Van Staveren wrote:
> >
> > There is an easier way (sorta) to get hours/minutes/seconds;
> >
> > ($seconds, $minutes, $hours)=splice(localtime(), 0, 3);
>
> Did you try this?  No, I didn't think so.  :-)
>
> splice() will only work with array not lists.

... but (as you meant to say, John) you can take a slice
of a list like this

  my ($seconds, $minutes, $hours) = (localtime)[0..2];

:)

Rob






-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to