in reply to Seeking the

OOPS,

My code's not a good example.

I was using it to see what happened to the values of the
variables, and I think the wrong impression was given.

These values probably will not be printed.
If I can get this to work they will be used for a comparison.
Probably something I should be using a regular expression for,
but I'm just getting started and regexs are still
a bit incomprehensible.

I need the leading 0 on the month and day if they are less
than 9 and the value will not be printed, so
although I thank you for your answers I don't think
sprintf will work.

Replies are listed 'Best First'.
Re: Re: Seeking the
by gellyfish (Monsignor) on Feb 06, 2002 at 22:30 UTC

    No, sprintf is exactly what you want - it formats into a string without printing

    Please refer to the perlfunc manpage for more details.

    /J\