Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: How to add columns with new row name using perl from mysql query?

by poj (Abbot)
on Apr 05, 2017 at 07:12 UTC ( #1187071=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!perl
    use DBI; 
    ...
      $col[2] = $table{$key}{'run'};
      printf "| %-25s | %3d | %3d |\n",@col;
    }
    
  2. or download this
    # input
    my @top = ();
    ...
    for (@top){
      printf "| %-25s | %3d | %3d |\n",@$_;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2020-10-27 12:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (256 votes). Check out past polls.

    Notices?