On Thu, Jan 31, 2002 at 08:10:00PM -0800, Yitzchak Scott-Thoennes wrote: > 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;
You took the hood ornament off your car to reduce drag, didn't you. > But in some ways the regexp solutions are better since they'll leave > more malformed strings alone. Yay! Silently failing code! -- Michael G. Schwern <[EMAIL PROTECTED]> http://www.pobox.com/~schwern/ Perl Quality Assurance <[EMAIL PROTECTED]> Kwalitee Is Job One Is there an airport nearby or is that just my tae-kwon-do taking off?