On Tue, Apr 24, 2001 at 11:00:40AM -0500, Arante, Susan wrote:
> Could someone tell me why this is happening? When I use this command, it
> used to give me 20010405.doc (yyyymmdd.doc), now it's giving me 2001 4 5.doc
> - I'm losing the leading zeros.
> Command is on Perl 5 - printf("\%s%02s%02s.doc",$year,$month,$day).
You probably want "%d%02d%02d.doc" as your format string.
d => digits
s => strings
And I don't think you need that leading "\".
--
Aren't you, at this point, cutting down a California Redwood using a
banana *and* a particle accelerator?
- Bernard El-Hagin, in CLPM