I'm assuming asking perl questions isn't OT :)
I'm using the GD modules in which you can do the following
print IMG $my_graph->plot(\@data)->gif;
print IMG $my_graph->plot(\@data)->png;
print IMG $my_graph->plot(\@data)->gd;
print IMG $my_graph->plot(\@data)->gd2;
what I want to be able to do is the equivelant of this
$format = "png";
print IMG $my_graph->plot(\@data)->$format;
that of course doesn't work. Is there a way to do it or do I just have
to put each option in an ifelse?
I'm thinking it's perl so there must be a way.
--
John
The difference between a good man and a bad one is the
choice of cause - William James
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug