in reply to Removing leading zeros

perl -e '$_="000abc";s/^0*//;print'

Cheers,
Ovid

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.