I don't know about cgi but I think you can use prinf to add the leading zero. printf ("Minute %02d.\n", $value);
This should pad the output with a zeroes. The two there means that this is a two digit number. If you've played with C you will recognise this. I am also a new and could be dead wrong. What does the list say? Regards Langa > -----Original Message----- > From: Kevin Old [mailto:[EMAIL PROTECTED]] > Sent: 10 June 2002 04:47 PM > To: [EMAIL PROTECTED] > Subject: Hours popup menu > > > Hello all, > > What I'd like to do is create a popup menu on a web page that > has the hours 00-59 in it. Thing is, the only way I can come > up to do it is by writing out something like below......and > then putting a reference to this array in the code for the popup menu. > > @hoursvals = (00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 > 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 > 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 > 56 57 58 59); > > I tried something like this: > > @hoursvals = (00 .. 59); > > but, instead of getting "00, 01, 02...so forth" I get "0, 1, > 2, 3...so forth". > > Anyone know how I can dynamically create the list with the > first ten having a preceeding zero? > > Thanks, > Kevin > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > NOTICE: This message and any attachments are confidential and intended solely for the addressee. If you have received this message in error, please notify the sender at Nanoteq (Pty) Ltd immediately, telephone number +27 (0) 12 672 7000. Any unauthorised use, alteration or dissemination is prohibited. Nanoteq (Pty) Ltd accepts no liability whatsoever for any loss whether it be direct, indirect or consequential, arising from information made available and actions resulting there from. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]