in reply to Re: Re: loops + creating graphs
in thread loops + creating graphs

i think what you want to do is create a temporary file; that way, you can store the plot data in it. and not have it overwritten.

according to the cookbook, you could use tmpnam. there was a posting with that in the last couple of days (check "newest nodes"). i prefer File::Temp.

something like
use File::Temp; my $tfname = File::Temp::tempnam($tmpdir, "math.")
will get you *the name* for a create a temporary file with the prefix "math". you'll have to write the stuff in the loop to it yourself.

...wufnik -- in the world of the mules there are no rules --