On Thu, 31 Jan 2002, Pradeep Sethi wrote:

> Thanks but I am looking of any regexp substitution.
> 
> sorry for typo : I need to change 9/9/1973 to 09/09/1973
> 
> 

---
$date="9/09/1973";
$date=~s{(\d+/)} {$1<10?"0$1":$1}ge;
print $date,$/;
---

Can't comment on effiency ??? also will do stange things to the year it it is
incorrect:

try $date="1/1/1"; :)


Yours Tony.

/*
 * "The significant problems we face cannot be solved at the 
 * same level of thinking we were at when we created them."
 * --Albert Einstein
 */

Reply via email to