What type of field is SCHOOL_ID in the database? If it's a character based field then you're probably accidentally causing Perl to convert it to a number. Hard to know without more information.
Main Topics
Browse All TopicsOk I am doing a query on an oracle database. My first variable I am storing that has relevance is the results of a SCHOOL_ID for eacch record. I then take the results of that SCHOOL_ID and run a second query on a different table to match the physical name of that school with that ID.
My problem is the SCHOOL_ID has a format of 1,001.00 for a schoolID Well when I store that as a regular scalar it treats it as a number, and drops the comma, the decimal point, and the two zero's. So when I use the variable that has that now chopped value of 1001 on the other table, it retuns Zero resluts becuse 1,001.00 is not equal to 1001 as a string comparator.
How do I force the variable to store that query as a string! and not drop the commas, decimal place and zeros?!?!?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: FishMongerPosted on 2009-11-06 at 12:06:48ID: 25762585
Perl will not do that on its own.
Can you show us your code that does the db calls and assigns the returned data to the vars?