Re: Convert Date to Timestamp.

2006-11-03 Thread John W. Krahn
Sara wrote: > I am getting Month, Day and Year from Drop Downs of a form to convert given > values to Unix timestamp. I am able to put values in all the variables > below except for $wday & $yday. Any ideas as how I can get those with > limited user input of month, day and year only? > > #!/usr/l

Re: Convert Date to Timestamp.

2006-11-01 Thread Mumia W.
On 11/01/2006 12:04 AM, Sara wrote: I am getting Month, Day and Year from Drop Downs of a form to convert given values to Unix timestamp. I am able to put values in all the variables below except for $wday & $yday. Any ideas as how I can get those with limited user input of month, day and year

Re: Convert Date to Timestamp.

2006-11-01 Thread David Romero
See the Date::Parse Module from cpan On 10/31/06, Sara <[EMAIL PROTECTED]> wrote: I am getting Month, Day and Year from Drop Downs of a form to convert given values to Unix timestamp. I am able to put values in all the variables below except for $wday & $yday. Any ideas as how I can get th

RE: Convert Date to Timestamp.

2006-11-01 Thread Charles K. Clarkson
Sara wrote: : I am getting Month, Day and Year from Drop Downs of a form to : convert given values to Unix timestamp. : I am able to put values in all the variables below except for : $wday & $yday. Any ideas as how I can get those with limited : user input of month, da

Re: Convert utf-8 XML Document to ISO format

2006-08-14 Thread Chris Cosner
Thomas, I've had a similar experience and will provide my solution below. I'm not sure it's optimal, but it works for me. I'm working with a file, not an HTTP POST. (In addition to what is below, I would suggest looking at how you specify the charset encoding of your POST to be sure it is what

RE: Convert utf-8 XML Document to ISO format

2006-08-07 Thread J. Alejandro Ceballos Z. -JOAL-
You can try with *Encode::Unicode* or *Unicode::Transform* An other form is using the sustitution parameters (s/) in order to do inverse co

Re: Convert utf-8 XML Document to ISO format

2006-08-04 Thread Mumia W.
On 08/04/2006 05:07 AM, [EMAIL PROTECTED] wrote: Hi List, [...] Hi Web. Maybe someone has a hint how to convert a XML::Simple document (by POST) in UTF-8 with the FLAG set on to a Simple LATIN1 document so that I can safe it into my latin1 table! Tanks for any help Ciao Thomas Us

Re: Convert IP address

2002-11-11 Thread WilliamGunther
In a message dated 11/11/2002 9:16:10 AM Eastern Standard Time, [EMAIL PROTECTED] writes: > was wondering if there is a module or someone may know of a quick means of > convering a IP address to a host/domain address. $ip = $ENV{'REMOTE_ADDR'}; @digits = split (/\./, $ip); $address = pack ("C4

Re: convert date value into text value..

2002-05-22 Thread David vd Geer Inhuur tbv IPlib
Hi Sven, I think you have to do it on another way. Better to let perl find your date. #!/usr/bin/perl use Time::localtime $tijd = localtime; $year = $tijd->year+1900 print $tijd->sec; print "Wir leben heute am jahr: $year"; In this order we have : sec Seconds min Minutes hours hou

Re: re-convert

2001-12-19 Thread fliptop
Connie Chan wrote: > Since we know this : $string =~ s/([a-fA-F0-9][a-fA-F0-9])/pack ("C", > hex($1))/eg; > > is a statement which can converting back the "real string" from > a form field, but, could anybody tell how to convert the "real string" > to the "long long" string ?? > > Besides, any

re-convert

2001-12-19 Thread Connie Chan
Since we know this : $string =~ s/([a-fA-F0-9][a-fA-F0-9])/pack ("C", hex($1))/eg; is a statement which can converting back the "real string" from a form field, but, could anybody tell how to convert the "real string" to the "long long" string ?? Besides, anybody can tell what is the exactly me