in reply to Histogram in Perl
I installed the module, and tried it using the bits and snippets from the module's POD, with no luck. In digging through the package's contents, though, I found 'scripts/histogram.pl', which did work. In comparing the code there with the snippets from the POD, the issue appears to be with the data. The example in the POD for the 1.0 version shows:
When I replaced this with:$data = [1,5,7,8,9,10,11,3,3,5,5,5,7,2,2];
I had no problem with it working.@data = (1,5,7,8,9,10,11,3,3,5,5,5,7,2,2);
Hope that helps.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Histogram in Perl
by Jaya (Acolyte) on Feb 18, 2005 at 03:57 UTC | |
by atcroft (Abbot) on Feb 18, 2005 at 04:24 UTC | |
by Anonymous Monk on Feb 18, 2005 at 05:12 UTC | |
by Jaya (Acolyte) on Feb 18, 2005 at 07:13 UTC |