Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Re: Dropping Leading Zeros

by Sweeper (Pilgrim)
on Feb 06, 2002 at 06:32 UTC ( [id://143564]=note: print w/replies, xml ) Need Help??


in reply to Re: Dropping Leading Zeros
in thread Dropping Leading Zeros

i couldn't quite understand the question... but from the title of the post.. you want to remove leading zeros

On the contrary, in his case, his program drops zeros that should be kept (zip codes, phone numbers). Your answer is valid, but off-topic. Yet, I did not downvote you, you wanted to help.

Back to the question. I think that the real problem is that in the database, phone numbers and zip codes are described as numbers, and this is wrong. Phone numbers are strings, not numbers (consider 1-800-COLLECT), and zip codes are strings, not numbers (consider British and Canadian zip codes). Like gellyfish said, a few lines of code would help (do not post your whole program, yet, just select the few lines in question).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://143564]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-19 23:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found