You can leave out the @timenow:
...just gives you the slice.@current = (localtime time)[1..2];
Hope this helps,
Jeroen
Update: You're welcome. That prob is easily solved with reverse:
@current = reverse (localtime time)[1..2];
In reply to Re:{3} How to compare arrays? (xmms alarm clock)
by jeroenes
in thread How to compare arrays? (xmms alarm clock)
by ginseng
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |