in reply to use base { MODULE = version}? (a change to base.pm)

You asked:

btw, why doesn't the power of => kick in "use base { FOO::BAR => 1 };"?

I _think_ that's because the => only quotes the immediately preceding bareword. So you're probably running into the same issue you'd have if you tried to do

use base { HYPHENATED-MODULE => 2.1 };
But that's all just guessing.
--
Mike

Replies are listed 'Best First'.
(tye)Re: The power of "fat comma"
by tye (Sage) on Mar 27, 2002 at 00:24 UTC

    I believe that it is simply a bug. I recall discussing this before but can't find a node on it. I think it is fixed in 5.6.1, but I don't have that handy either.

            - tye (but my friends call me "Tye")
      I don't know if it is bug or feature :) but indeed Foo::Bar => 1 syntax seems to work in 5.6.1 but not in 5.005 (I haven't checked it on other versions).

      --
      Ilya Martynov (http://martynov.org/)