Posted on 2006-10-19 18:48:53-07 by jamestr
Suggestions on building the graph values dynamically?
Hi, I was wondering what method would work best for building the graph dynamically for this module. I have tried varying things, and it hasn't worked. Specifically, how do you replace the hard coded node information in the example with passing in a variable that contains a dynamically built list of nodes? I have tried building both arrays and scalars dynamically, e.g. $pr_nodes, or @pr_nodes, and then calling
$pr->graph($pr_nodes)
or
$pr-graph->(@pr_nodes)
and they both fail. Any help would be appreciated. Thanks.
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.