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)?