perl's equivalent for jpgraph (www.aditus.nu/jpgraph/)

2004-10-13 Thread quincy
greetings;

any suggestion for perl's equivalent for jpgraph (www.aditus.nu/jpgraph/) ?

Please Recommend a chart module

2002-09-26 Thread Quincy Ntuli


Greetings from Sunny South Africa.

Could someone please recommend a chart module ?

I wonder if there is a rating system out there to rate perl modules that do more or 
less similar tasks. 

Any pointers please ?

Thanks.


---
#!/bin/laid
---



Problem Installing DBD::mysql

2002-09-13 Thread Quincy Ntuli

Greetings

My Configuration is as follows

SuSE Linux 7.3
mysql-3.23.41-17 (distributed with SuSE)
perl-5.6.1-41

I tried to install DBD::mysql but got the following error after the command

make Makefile.PL

Can't exec mysql_config: No such file or directory at Makefile.PL line
169.

I tried to locate mysql_config but that file does not exist. My guess is
that it is a reuslt of installing mysql using rpm. Its only  a guess though.

Is there a workaround for my porblem ?



---
#!/bin/laid
---


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




s/// in a list -- How to do it ?

2002-09-10 Thread Quincy Ntuli

greetings



I have a list listing whose output is like ...

data/23_59_54_20_08_2002
 data/23_59_55_20_08_2002
 data/23_59_56_20_08_2002
 data/23_59_57_20_08_2002
 data/23_59_58_20_08_2002
 data/23_59_59_20_08_2002

how do i search and replace occurances of 

data/

with nothing (  )

thanks





Date and time modified

2002-09-09 Thread Quincy Ntuli

Greetings.

I wish to obtain the time and date of a file.

How do i do this in perl ?

There is probably a module out there to do this but is it possible to modify the date 
and time format of the output of whatever method is available for getting the time and 
date modified for a file ?

thanx




---
#!/bin/laid
---



sorting of arrays

2002-09-04 Thread Quincy Ntuli

I understand that perl desides how it stores data in an array.

does it make sense for me to ...

sorted = sort list;



HELP !! displaying Associate Array value pairs

2002-09-04 Thread Quincy Ntuli


greetings

I am trying to return the value from an associate array; i do not understand what i am 
doing wrong. I know i made be reinventing the wheel here if you follow what i am 
trying to do.

thanks


#!/usr/bin/perl -w

%theHash = ();
dbRec = ();
listing = ();
sortedListing = ()
;
# making a directory list

foreach $f (data/*) { if (-f $f) { $theFileItem = $f\n;

# list populated  into an array;

push (listing, $theFileItem);}}

#sorting the list i doubt this works though

sortedListing = sort listing;

$listLength = sortedListing;

for ($i=0; $i= $listLength-1; $i +=1)
{
open(INVIN, $sortedListing[$i]) or die COULD NOT OPEN $i\n;

INVIN; #ignoring the first line

while(INVIN)
{   $TheLine = $_;
chomp($TheLine);
push(dbRec, $TheLine);
}
}

$theHash{'$sortedListing[1]'} =[$dbRec];

print \$sortedListing[1] is ($theHash{'$sortedListing[1]'})\n;
~