AoA for GD::Graph

2005-06-05 Thread ahuber
I am trying to build an array that can be used with GD::Graph
to show the graphical representation of a MySQL query.  This module
only takes in an AoA like this:

@data = ([1,2,3,4],[10,20,30,40]); # @arr[$x vals], [$y vals]

It then takes that array and parses it into a graph like this:

my $image = $plot->plot([EMAIL PROTECTED]);

My SELECT statement correctly returns two columns of data but I'm having
trouble reading them into an array shaped like the above using the following:

while (@results = $sth->fetchrow_array ())
{
$x = $results[0];
$y = $results[1];
push (@data,[$x],[$y]);
}

When I use the above code I get an array that looks like this

@data = [1,10][2,20][3,30][4,40].

How can I get my array to come out correctly?

Thanks, Aaron.

P.S. Sorry for posting this again, but I left out some important
information in my first post and I was mis-understood.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




Two Dimensional Array Problem

2005-06-03 Thread ahuber
I am trying to send the output of a mysql query to a two dimensional array.

This is what I've tried using push.

while (@results = $sth->fetchrow_array ())
{
$x = $results[0];
$y = $results[1];
push (@data,[$x],[$y]);
}

However, I don't get back a two dimensional array, I get back a single
array of @data.

Thanks. -Aaron

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




Return CD-ROM/RW Creation Date

2005-05-24 Thread ahuber
Platform: Windows
Version: Active State v5.8.36 build number 811

Is there a way to find out the creation date (or burn date) of a cd-rw
disc? I tried using things like $burndate = (stat("."))[9], but on windows
there is no current directory entry for CD media, it always returns an old
date like 1980-1-1.

I've also looked into Win32::DriveInfo, but it doesn't have any way to
report the date a CD was created either.

I have only found one command line tool that shows the cd creation date
but it doesn't use standard output so I can't redirect its output to perl
for processing.

I am trying to read the creation date off of CDs burned in the Joliet File
System.  Thank You - Aaron S. Huber ([EMAIL PROTECTED])




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]