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

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

by Corion (Patriarch)
on Mar 22, 2017 at 09:42 UTC ( [id://1185425]=note: print w/replies, xml ) Need Help??


in reply to Re^4: 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?

You can easily convert between arrayref and hashref.

If converting between arrays and hashes is problematic for you, maybe you should review your Perl learning material or program some exercises about how to convert between an array and a hash (and a hash and an array).

For example, you might have this array:

#!perl -w use strict; # Name Age Street my @user = (qw(John 42 Infinityway)); my %user = ...;

How would you convert the data from @user (an array) to a hash (%user)?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-25 19:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found