That will do wonders to clean up the text some more to focus on the logic (if that IS your goal).# top level of code: my $loc_query = "SELECT location FROM demstock2 WHERE ds_id=?"; #... #...much later... my $sth = $dbi->prepare( $loc_query ) # or die... $sth->execute( $id ) # or capture error
Do note that even though it is in-house, and might be behind the safest firewall in the world, it's always a good idea to think security first, as not only will this help you if you go on to help develop the company's public site, but for any future CGI efforts you might do. It's like what we say around here with use strict and -w; your program might not need them, but it's a very good habit to always include those.
-----------------------------------------------------
Dr. Michael K. Neylon - mneylon-pm@masemware.com
||
"You've left the lens cap of your mind on again, Pinky" - The Brain
"I can see my house from here!"
It's not what you know, but knowing how to find it if you don't know that's important
In reply to Re: Re: Re: A question of style.
by Masem
in thread A question of style.
by davis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |