Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

passing array to a function 1

Status
Not open for further replies.

eatr

Technical User
Jan 20, 2006
48
looking for help in passing an array to the
GD::GRAPH function $graph->set_legend(@legend_keys);

passing the array as shown returns pointers to memory addresses.

for my $k ( 0 .. $#legends_keys) { # size
$graph->set_legend (@{$legends_keys[$k]});
}

returns ONLY the last value (at S#legends_keys) in the array

help


 
figured it out: I was pushing into an array reference, which the function will not accept
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top