in reply to Re: You need more coffee when...
in thread You need more coffee when...

Not to completely miss the point, but you really should be using sprintf to do that:

$const{pidwithzeros} = sprintf "%010d", $const{pid};