dpippen has asked for the wisdom of the Perl Monks concerning the following question:
@commands = ("add_node('W1')", "add_node('W2')", "add_edge('W2' => 'W1 +')");
use GraphViz; my $g = GraphViz->new(); foreach $command (@commands) { $g->$command; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: calling methods using a variable (FORMATTED)
by Fletch (Bishop) on Mar 22, 2002 at 03:40 UTC | |
|
Re: calling methods using a variable (FORMATTED)
by chromatic (Archbishop) on Mar 22, 2002 at 05:13 UTC |