in reply to Removing leading zeros
perl -e '$_="000abc";s/^0*//;print' [download]
Cheers, Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.