In article <20020201025307.GC9474@blackrider>,
Michael G Schwern <[EMAIL PROTECTED]> wrote:
>
>$date = sprintf "%02d/%02d/%d", split '/', $date;

Perhaps slightly more efficient:
  $date = sprintf "%02d/%02d/%s", split '/', $date, 3;

But in some ways the regexp solutions are better since they'll leave
more malformed strings alone.

Reply via email to