Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^9: Computing results through Arrays

by aaron_baugher (Curate)
on Jun 07, 2015 at 14:37 UTC ( [id://1129347]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub set_column_widths {
        my $h         = shift; # reference to hash table of speeds, keyed 
    +by datetime, then by database
    ...
            $databases->{$db} = $databases->{$db} > $l ? $databases->{$db}
    + : $l;  
        }
    }
    
  2. or download this
    set_column_widths(\%h, \%db, \@db);
    
  3. or download this
    printf "%11s", $_ for (@db);
    
    ...
    # stick a space between columns
    
    printf " %$db{$_}s", $_ for (@db);
    
  4. or download this
    #!/usr/bin/env perl
    use 5.010; use strict; use warnings;
    ...
    server02: 2015-06-01T12:41:03-04:00  MYDB101                 7 MB/sec
    server02: 2015-06-01T12:41:03-04:00  MYDB202                 7 MB/sec
    server02: 2015-06-01T12:41:03-04:00  _OTHER_DB_             55 MB/sec
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-20 03:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found