Date to seconds

2003-09-11 Thread Li, Kit-Wing
Hi, Does anybody know of a quick method in perl to turn a date string into its equivalent in seconds, include milliseconds if possible? Ex: 20030910 13:50:25.6 to 1063202644. Thanks much! -- This message is intended o

accessing a hash map...

2003-09-09 Thread Li, Kit-Wing
This may not be the right thread but I'd like to see if someone could point me to the right direction. I'm writing a CGI script to show current performance of the Apache server and I'm using Linux::stat to get the disk IO for example. I can seem to access the value of the hash reference(see below

Replacing carriage return with character string '\n' coming from a textarea param

2003-08-21 Thread Li, Kit-Wing
Hi, Can someone help me with the following? I have a simple cgi script that is trying to take the paragraph from a TEXTAREA field and insert the text into a MySql table. This works: insert into description_tbl(1,'This is a sample paragraph.\nThis is just a test.\n'); However, by passing $query-