in reply to Re: Uptime
in thread Parsing 'uptime' output
Just matching might be better than trying to use split.
Update: Tested and fixed now.@uptime{'Time', 'Uptime', 'Users', 'Load'} = qx(/usr/bin/uptime) =~ /^\s*(\S*)\s*([^,]*,[^,]*),([^,]*),(.*)/;
-sauoq "My two cents aren't worth a dime.";
|
|---|