develooper Front page | perl.perl5.porters | Postings from November 2011

Re: [perl #104506] BUG or RFE: use manpage is misleading; enhance'use' to fix preferable

Thread Previous | Thread Next
From:
Eric Brine
Date:
November 24, 2011 12:39
Subject:
Re: [perl #104506] BUG or RFE: use manpage is misleading; enhance'use' to fix preferable
Message ID:
CALJW-qE5DofDyDeCqxsEFTg+=S5QmgivLDW7AyOEYa3+ELJ4-g@mail.gmail.com
On Thu, Nov 24, 2011 at 3:15 PM, Linda Walsh <perl-diddler@tlinx.org> wrote:

> use feature 'don't auto add .pm";  /
>
> use "Foo::Bar.pm"  #or non bare word?
>

That wouldn't work. The following would now load the module twice:

use Foo::Bar;
require "Foo/Bar.pm";

It also makes it impossible to distinguish between files Foo/Bar and
Foo/Bar.pm.


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About