Link to home
Start Free TrialLog in
Avatar of jedistar
jedistarFlag for Singapore

asked on

Reading/Searching from a CSV file and displaying results in Graphs

I have some survey questions to be stored in a CSV file.
eg: Q: How many people live in Australia, Ans: 8398493893
eg: Q: How many people live in New Zealand, Ans: 849589458

How do i store them inside a CSV file, read / search and allow
a user to choose which question to display the result into a Graph?

help appreciated!
Avatar of Dave Cross
Dave Cross
Flag of United Kingdom of Great Britain and Northern Ireland image

What parts of the problem are you having toruble with? Show us what you have so far and explain where you need help.

Dave...
Avatar of jedistar

ASKER

i would like to know do i code the above, need examples. thanks.
ASKER CERTIFIED SOLUTION
Avatar of Dave Cross
Dave Cross
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi jedistar,
R u already have the count of each country population,
the population that we have to put in a file?
When we want any country population,the perl code has to display the count?

Hope the below example helps u:

i.e., %count = ( "aus",1234,"NZ",5678,.....);

foreach $key (keys %count) {
    print "The people live in $key country is $count{$key}\n";
}

i guessed the question and answered it,

Cheers!
Suhas