buchi2 has asked for the wisdom of the Perl Monks concerning the following question:
I have this:
as example, using it to give it to GD::Graph::histogram for plotting a histogram.my @data = [1,5,7,8,9,10,11,3,3,5,5,5,7,2,2];
But how I can read the line and assign it to @data?1,5,7,8,9,10,11,3,3,5,5,5,7,2,2
where @input contains line by line from my input. But it does not work, because it is taking the elements of @histofeld as a string.(@histofeld) = split(',',$input[$i]);
Regards, buchi
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to get data to an array?
by haukex (Archbishop) on Aug 31, 2017 at 17:14 UTC | |
|
Re: How to get data to an array?
by flightdm (Acolyte) on Aug 31, 2017 at 19:28 UTC | |
by thanos1983 (Parson) on Sep 01, 2017 at 00:15 UTC | |
by flightdm (Acolyte) on Sep 13, 2017 at 04:27 UTC | |
|
Re: How to get data to an array?
by thanos1983 (Parson) on Sep 01, 2017 at 00:00 UTC | |
|
Re: How to get data to an array?
by dbander (Scribe) on Aug 31, 2017 at 21:14 UTC | |
by thanos1983 (Parson) on Sep 01, 2017 at 00:22 UTC | |
by buchi2 (Acolyte) on Sep 01, 2017 at 08:38 UTC |