If you want the first numeric field I'd use:
($uptime) = $uptime =~ /(\d+)/;
which makes the intent much clearer. What's with the ref(\$uptime)?
In reply to Re^3: What is the * postfix operator, pre-'feature postderef'?
by GrandFather
in thread What is the * postfix operator, pre-'feature postderef'?
by wsanders
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |