Keep It Simple, Stupid | |
PerlMonks |
Re: Default values in functions argumentsby jptxs (Curate) |
on Sep 27, 2000 at 22:44 UTC ( [id://34259]=note: print w/replies, xml ) | Need Help?? |
not sure what database you're using or if these 'default values' would change from time to time depending on context, but you could let the database take care of that for you. Most DBs will let you assign defaults for columns. I'm an Oracle guy and I do this in a few places and it works like a charm. obviously, this is only useful if these are true 'defaults' that would always be the same in the absence of real data to insert. -- I'm a solipsist, and so is everyone else. (think about it)
In Section
Seekers of Perl Wisdom
|
|