in reply to formatting zipcodes

If i understand you well, then you have at least 2 (simple) solutions:
  1. Brute force:
    print "0" x (5 -length($zip)), "$zip";
  2. Much more elegant ;-):
    printf ("%05d", $zip);

I would use the second one ;-)

Greetz, Tom.