On 5/22/05, Ley, Chung wrote:
> 
> Upon further inspection of the array that I passed into the call, I find out 
> that for some reasons, 
> my array's last couple of elements are "defined" but without any values.  My 
> first thought was 
> that somehow I might have did something like this in my code:
>    data[0][1] = $yield; (where $yield was an undefined value).
> So, I did a check on $yield value first before assigning it...  That didn't 
> seem to solve the 
> problem...  My next assumption is that maybe I somehow "skipped" over some of 
> the elements 
> like so:
>    data[0][1] = $yield;
>    data[0][100] = $yield;
> where the middle 99 elements were unassigned and that perl automatically 
> defined them.  I 
> used print statements and didn't seem to notice this problem...
> 

(nipicking - you wrote "data[0][1]" without the $ sign before "data".
Try to be exact when posting your code, it might make you think of
something you forgot in your code.)

How did you use print statements? Did you use Data::Dumper? Try:
   use Data::Dumper;
   print Dumper ([EMAIL PROTECTED]);
Just before you pass @data to GD::Graph::Boxplot. You should see which
values are undefined, although perhaps that will not help you to
understand why they are not defined.
You might also want to try out the Devel::ebug module, it's very nice :)
http://search.cpan.org/dist/Devel-ebug/

HTH,
-- 
Offer Kaye

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to