Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 ( #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 (Parson) 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
Node Status?
node history
Node Type: note [id://1185537]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (11)
As of 2019-12-11 14:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?