in reply to use base 'Foo' or die!

Of course, qw isn't the only way of passing more than one argument to a module. The use Module statement takes a list. So,
use Foo 'bar', 'baz';

is just fine. The qw is just something "everyone" does. But not all the time. There is at least one module (which takes more than one argument) where "noone" uses qw for the argument list.

I'll make it a quiz question: can you guess which module that is?

Abigail

Replies are listed 'Best First'.
Re: Re: use base 'Foo' or die!
by jmcnamara (Monsignor) on Feb 12, 2003 at 16:47 UTC

    strict? People tend to do:
    use strict 'refs'; no strict 'refs';

    As a (mild) style rule I try not to write use Module qw(foo) when I mean use Module 'foo' but I'm sure I've done it in the past. :-)

    --
    John.

Re^2: use base 'Foo' or die!
by adrianh (Chancellor) on Feb 12, 2003 at 16:25 UTC
      Maybe, but that wasn't the module I was thinking of. The module I'm thinking of is used more commonly.

      Abigail

Re: Re: use base 'Foo' or die!
by osfameron (Hermit) on Feb 12, 2003 at 16:46 UTC

      Just shows how fluid definitions can be. Constant is a common module for me, since I use it it about 75 percent of my production code.


      I just realized that I was using the same sig for nearly three years.

Re: Re: use base 'Foo' or die!
by ihb (Deacon) on Feb 12, 2003 at 17:03 UTC
      Indeed. I was thinking of constant.

      Abigail

Re: Re: use base 'Foo' or die!
by Hofmator (Curate) on Feb 12, 2003 at 16:47 UTC
Re: Re: use base 'Foo' or die!
by Juerd (Abbot) on Feb 13, 2003 at 00:32 UTC
      When I said that the module takes more than argument, I meant that you were supposed to give at least two arguments. 'strict' and 'warnings' are often used without any arguments.

      Abigail