RE: Some Qs about the -w switch and initializing vars.

2003-06-17 Thread Charles K. Clarkson
Daedalus <[EMAIL PROTECTED]> wrote: : : Hi all, : : I have a cgi prog that complains about uninitialized : values when I use the -w switch. To avoid those errors : I have done stuff like this: [snip] I think the best solution is a sub routine re-write. I don't play with DBI much but I think

Re: Some Qs about the -w switch and initializing vars.

2003-06-17 Thread drieux
On Tuesday, Jun 17, 2003, at 09:33 US/Pacific, Daedalus wrote: [..] # function get_address# sub get_address {my ($dbh, $sth, $searchid, $name, $address1, $address2, $address3, $address4) = @init_array; I would have do

Some Qs about the -w switch and initializing vars.

2003-06-17 Thread Daedalus
Hi all, I have a cgi prog that complains about uninitialized values when I use the -w switch. To avoid those errors I have done stuff like this: --- # Up near the top with a bunch of other defs and the main prog... my @init_array = ("","