On Tue, Aug 08, 2000 at 10:02:35AM +0100, Piers Cawley wrote:
> "Peter Bevan" <[EMAIL PROTECTED]> writes:
>
> > Just a thought, but I think it woul be a good idea to include the
> > 'java-esqe' practice of including packages via foo.barr.*
Hey, I'm famous :)
> However, I do like the idea of syntactic sugar to load a bunch of
> modules. I'm not sure you need the '*' though. Something like:
>
> require Foo::Bar:: ;
>
> Has no real meaning currently and could be taken to mean 'load all of
> the modules under Foo::Bar'.
It does, but probbaly not what it should be
perl -e 'require Foo::'
Can't locate Foo/.pm in @INC
perl -e 'Foo::->new'
Can't locate object method "new" via package "Foo" at -e line 1.
So the require probably should load Foo.pm as Foo:: is treated as Foo elsewhere
in perl.
Graham.