Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: I have done this before

by saintly (Scribe)
on Jul 13, 2007 at 18:43 UTC ( #626508=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      # prepare regex sub-expressions
      my $sizerx = '(-|\d+(\.\d+)?[GM]?)'; # Matches '-', or a float + 'M'
    + or 'G' for size
    ...
      ) {
        print "using regex, host is [$1]\n"; 
      }
    
  2. or download this
      my($host,$os,$nproc,$load,$memtot,$memuse,$swapto) = (
        $_ =~ /^(\w+)\s+    # host
    ...
      } else {
        next;
      }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://626508]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2022-08-07 23:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?