{WEB}", "$self->{TOPIC}", "view" ) . "#ploticusplot".$self->{NAME}."' method=\"post\" >\n"; $text .= "{NAME}\" />\n"; $text .= "\n"; $text .= "\n"; $text .= "\n"; return $text; } sub buildPlotString { my $self = shift; my $plotString = shift; my @inPlots = split(/,/, $plotString); my @outPlots = (); foreach (@inPlots) { if (/('.*')/) { my $plotSpec = $_; my $dataFile = substr($1,1); chop($dataFile); my $fullPathToDataFile = $self->{PATH} . "/" . $dataFile; $plotSpec =~ s/$dataFile/$fullPathToDataFile/; unless ($plotSpec =~ /title/) { $plotSpec .= " title \"" . $dataFile . "\""; } if(-e $fullPathToDataFile) { push(@outPlots, $plotSpec ); } } else { push(@outPlots, $_); } } return join(", ", @outPlots); } 1;