One more thing on this: take a look at my newly-posted tutorial,
Tie: Creating Special Objects, as it contains a regular
expression to parse out the interesting parts of the
uptime output. (It also contains a bunch of other neat
stuff using tie and object oriented Perl, so give that
a look, too.)