Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 05:04 UTC ( #1185542=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?

After changing it to while(my $r=$sth->fetchall_hashref;) what does the following line denotes: for my $r (@$table) { my $name='other'; for my $s (@sys){ if ($r->{queue_name}=~m/$s/i) {$name=$s; last;} }
How the $table is used here without any pre declaration.
  • Comment on Re^4: How to calculate the column and print it in pie chart format using perl?
  • Download Code

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

    Hi finddata,

    Some time ago, a fellow sent emails asking for help over and over. I mentioned a book to read. The Perl by Example by Ellie Quigley is a great resource in helping one master Perl with classroom-like instructions. This fellow did the very thing.

    Do not be overwhelm by the number of pages. Only the first 200 ~ 230 pages will fill your mind with a wonderful foundation regarding the Perl scripting language. Just think, you'd reach page 5, then onwards to page 10, and soon understand everything up through page 35. You'd soon reach page 140 and want to celebrate with the entire family and friends upon crossing the 200 mark.

    Visualize reaching this milestone. What a fantastic journey that might be.

    Regards, Mario

      Thank you for your suggestions.
Re^5: How to calculate the column and print it in pie chart format using perl?
by huck (Parson) on Mar 23, 2017 at 05:10 UTC

    You dont follow directions well do you?

      Just am clarifying the things and its usage.How you used.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2019-12-09 01:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?