Nikola,
Thanks for getting me on the right track. Your code produces an array of "%02". I
tinkered with it and got it to work for me.
@hoursvals = map { /(\d+)/, $_ } (00 .. 59);
Thanks for your help
Kevin
On Mon, 10 Jun 2002 11:01:22 -0400
Nikola Janceski <[EMAIL PROTECTED]> wrote:
> @hoursvals = map { sprintf("%02", $_) } (00 .. 59);
>
> > -----Original Message-----
> > From: Kevin Old [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, June 10, 2002 10:47 AM
> > 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]
> >
>
> ----------------------------------------------------------------------------
> --------------------
> The views and opinions expressed in this email message are the sender's
> own, and do not necessarily represent the views and opinions of Summit
> Systems Inc.
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]