in reply to parsing output of uptime

I just tried this and it seemed to do a good job of splitting the output:
perl -e '$u = `uptime`; print join("\n",(split(/\s{2,}/,$u)));'

which gave me:
1:19pm
up 3 days,
4:36,
2 users,
load average: 0.22, 0.31, 0.36

so if you had:
@uptime = split(/\s{2,}/,`uptime`);

The part you want should be $uptime1 and $uptime2