[oak perl] The mysterious "undef"

David Fetter david at fetter.org
Mon Mar 21 10:01:31 PST 2005


On Sat, Mar 19, 2005 at 06:40:00PM -0800, Jon Seidel, CMC wrote:
> Sandy... One of the things that you'll use undef for is to act as a
> placeholder for parameters. As I recall, there are MySql calls that
> often require the use of undef, since you don't want to pass a value
> for, say, parameters 2 and 3, but you have to give a value for
> parameters #4 and 5.
> 
> Thus, you would say something like:
> 
> $mysql->search($db, undef, undef, $text, $results)
> 
> Or something like that...if you're more familiar with the mysql
> interface, feel free to correct my errors :)

Familiarity with MySQL and its interfaces breeds only contempt.  When
offered an opportunity to work with that piece of junk, Just Say
PostgreSQL. :)

Cheers,
D
-- 
David Fetter david at fetter.org http://fetter.org/
phone: +1 510 893 6100   mobile: +1 415 235 3778

Remember to vote!


More information about the Oakland mailing list