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';

or

my $option = @ARGV ? shift : '/usr/local/db/queries.sql';

-- Brett
                                   http://www.chapelperilous.net/btfwk/
------------------------------------------------------------------------
The future isn't what it used to be.  (It never was.)

Reply via email to