Re: conditionaly using modules based on wether they are installed

2001-06-02 Thread Ask Bjoern Hansen
On 1 Jun 2001, Chas Owens wrote: > I want to add functionality to a script using a module, but not do not > want to require the modules use. It looks like the following code > works, but is it the best way to achieve my goal (yes, I know TMTOWTDI)? [...] > $xls = eval "use Spreadsheet::WriteExce

Re: conditionaly using modules based on wether they are installed

2001-06-01 Thread Michael Fowler
On Fri, Jun 01, 2001 at 09:42:59PM -0400, Chas Owens wrote: > I want to add functionality to a script using a module, but not do not > want to require the modules use. It looks like the following code > works, but is it the best way to achieve my goal Yes, it is. :) To elaborate, it's the most

conditionaly using modules based on wether they are installed

2001-06-01 Thread Chas Owens
I want to add functionality to a script using a module, but not do not want to require the modules use. It looks like the following code works, but is it the best way to achieve my goal (yes, I know TMTOWTDI)? START CODE #!/usr/bin/perl -w use Gtk "-init"; use DBI; $xls = eval "use Spreadsheet: