gberar has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to use SVG::Plot to plot some data from a file and it has the following lines of data 14/7/2011 6:9:27,11935 14/7/2011 7:9:3,11935 The following is from the SVG documentation
my $points = [ [0, 1, 'http://uri/'], [2, 3, '/uri/foo.png'] ]; my $plot = SVG::Plot->new( points => $points, debug => 0, scale => 0.025, max_width => 800, max_height => 400, point_size => 3, point_style => { fill => 'blue', stroke => 'yellow', }, line => 'follow', margin => 6, );
My question is how do I get this data into the $points array? Thank you

Replies are listed 'Best First'.
Re: SVG and reading $points from a file
by kcott (Archbishop) on Jul 17, 2011 at 09:06 UTC
Re: SVG and reading $points from a file
by Anonymous Monk on Jul 17, 2011 at 05:34 UTC

    My question is how do I get this data into the $points array? Thank you

    What do you mean?

    my $points = [ [0, 1, '14/7/2011 6:9:27'], [2, 3, '14/7/2011 7:9:3'], ... ];