in reply to sprintf formatting doubt

Hi perlsen,

u have to write that sprintf as,

$res=sprintf("%0${dig}d",$inc);

Regards,
Murugesan Kandasamy.