Kevin Old wrote:
> 
> Hello all,

Hello,

> 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?


Yes, use strings instead of numbers:

@hoursvals = ( '00' .. '59' );


John
-- 
use Perl;
program
fulfillment

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

Reply via email to