Re: FW: Optional Variables

2001-07-05 Thread Chas Owens
Oops, sorry I got tied up here and forgot I was going to send you more info. Basicly what you need to do is this: my $query = " select this, that from table where constant_where_clause_stuff = other constant_stuff "; $option = @ARGV ? " and filename = $AR

Re: FW: Optional Variables

2001-07-05 Thread Brett W. McCoy
On Thu, 5 Jul 2001, Kim Green wrote: > I don't know how or where to put & how to use this $option. > What if my Default value is a sql statement? Can I just include the name > of the file handle between the brackets? You can do something like my $option = @ARGV ? shift : 'SELECT * FROM my_table

FW: Optional Variables

2001-07-05 Thread Kim Green
I don't know how or where to put & how to use this $option. What if my Default value is a sql statement? Can I just include the name of the file handle between the brackets? -Original Message- From: Brett W. McCoy [mailto:[EMAIL PROTECTED]] Sent: Friday, June 29, 2001 6:40 PM To: M.W

Re: FW: Optional Variables

2001-06-29 Thread Chas Owens
On 29 Jun 2001 09:00:50 -0700, Randal L. Schwartz wrote: > > "Chas" == Chas Owens <[EMAIL PROTECTED]> writes: > > Chas> my $query = " > Chas> SELECT a.filename, a.size, a.date, b.owner, c.group > Chas> FROM filesystem a, outer owner b, outer group c > Chas>

Re: FW: Optional Variables

2001-06-29 Thread Chas Owens
On 29 Jun 2001 10:46:39 -0400, Kim Green wrote: > > Brett and Chas, > > I did create two file handles and alter my conditional statements, one to > work when there is a variable, and one for when there's no variable. The > first SQL statement should return everything for a given filename; the o

FW: Optional Variables

2001-06-29 Thread Kim Green
Brett and Chas, I did create two file handles and alter my conditional statements, one to work when there is a variable, and one for when there's no variable. The first SQL statement should return everything for a given filename; the other should return everything for all filenames that meet th