Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: I have done this before

by saintly (Scribe)
on Jul 13, 2007 at 18:43 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2024-03-28 21:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found