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

Re^4: How to calculate the column and print it in pie chart format using perl?

by finddata (Sexton)
on Mar 23, 2017 at 04:21 UTC ( [id://1185537]=note: print w/replies, xml ) Need Help??


in reply to Re^3: How to calculate the column and print it in pie chart format using perl?
in thread How to calculate the column and print it in pie chart format using perl?

The following error occurs: DBI fetchall_hashref: invalid number of arguments: got handle + 0, expected handle + between 1 and 1 Usage: $h->fetchall_hashref($key_field)
  • Comment on Re^4: How to calculate the column and print it in pie chart format using perl?

Replies are listed 'Best First'.
Re^5: How to calculate the column and print it in pie chart format using perl?
by huck (Prior) on Mar 23, 2017 at 04:48 UTC

    Replace

    my $table = $sth->fetchall_hashref; for my $r (@$table) {
    with
    while(my $r=$sth->fetchrow_hashref ){

    So what did your boss say? Did you tell him yet that you cannot do this yourself and that you need to get others to do your assignments for you? He should be getting that idea by now anyway.

    edit killed erroneous semicolon

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-10 20:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found