RE: [Perl-unix-users] Join Question

2002-11-01 Thread Scott Purcell
Hello Terry, I think you could use the sprintf function. The pattern %2d ensures that each element from the array is two digits using 0 as the pad. With the following I ended up with 120307 which shows me that it is padding each array element with 2digits. I think this may get you off into a goo

[Perl-unix-users] Join Question

2002-11-01 Thread Terry Vaughn
Hello all. Can someone tell me how to maintain the "0" in the below join statement. For times < 1200 noon I need to maintain the '0'. example: 8:30am should join as 0830 preferrably not 830 which is the string generated. Thanks. Terry $queuetime = (stat("$PREIMPORTDIR/$PREIMPORTFILE