Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Tie: Creating Special Objects

by blueflashlight (Pilgrim)
on Jul 07, 2001 at 07:42 UTC ( [id://94682]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    
    ...
    printf("%20s%-20s\n", "load(5):\t",  $uptime->load('five'));
    printf("%20s%-20s\n", "load(15):\t", $uptime->load('fifteen'));
    printf("%20s%-20s\n", "string:\t",   $uptime->as_string);
    
  2. or download this
    ./dumpuptime.pl 
                uptime:     21 days,   8:02     
    ...
               load(5):     0.04                
              load(15):     0.03                
                string:      20:39pm  up 21 days,   8:02,  1 users,  load 
    +average:  0.04, 0.03, 0.04
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2024-04-26 05:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found