There's more than one way to do things | |
PerlMonks |
Re: Seeking Algorithmby dragonchild (Archbishop) |
on May 28, 2004 at 13:13 UTC ( [id://357215]=note: print w/replies, xml ) | Need Help?? |
Let me guess - you're doing a report on all patients that had a diagnosis of type yadayadayada and they want to exclude the diagnosis for blahblahblah. You were also told that this was a one-off report and they'd never want to do the same thing, but with the code for something else excluded.
Do yourself a favor and put this into a database. I'm going to assume that each line is a patient. So, create a patient table and a diagnosis table. Then, you can do something like: Or something like that. The benefit here is that you have the data in a database for the next stupid question you get asked. ------
Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose I shouldn't have to say this, but any code, unless otherwise stated, is untested
In Section
Seekers of Perl Wisdom
|
|