in reply to Re: Uptime
in thread Parsing 'uptime' output

That won't pull out the time or uptime correctly either. The time is first, separated from the uptime by space. Then the number of days and hours:minutes of uptime is separated by a comma. Zaxo's should work now that he fixed it.

Just matching might be better than trying to use split.

@uptime{'Time', 'Uptime', 'Users', 'Load'} = qx(/usr/bin/uptime) =~ /^\s*(\S*)\s*([^,]*,[^,]*),([^,]*),(.*)/;
Update: Tested and fixed now.
Update 2: sauoq sighs. Thanks guha. Now it's really fixed.
-sauoq
"My two cents aren't worth a dime.";