Why should package declaration match filename?

2008-03-14 Thread Matisse Enzer
I'm discussing some potential refactorings at $work at wanted to give an articulate explanation of the benefits of having package declarations match file names, so that: # file is Foo/bar.pm package Foo::Bar; One reason is so that when you see a package statement, you know what the

Re: Why should package declaration match filename?

2008-03-14 Thread Eric Wilhelm
# from Matisse Enzer # on Friday 14 March 2008 12:20: and when you see a   use statement, you know what the corresponding package is, and have   a good clue about the path path of the file you are importing. Well, a use statement literally defines the name of the file (per `perldoc -f

Module-Faker and CPAN-Faker (RIP EU::FakeMaker)

2008-03-14 Thread Ricardo SIGNES
First, ExtUtils::FakeMaker is now Module::Faker. Schwern suggested that ExtUtils should no longer be used, and gave excellent reasoning, summed up here: http://www.perlfoundation.org/perl5/index.cgi?extutils So, that's done. There haven't been any changes worth mentioning, yet, in its

Re: Why should package declaration match filename?

2008-03-14 Thread Michael G Schwern
Matisse Enzer wrote: I'm discussing some potential refactorings at $work at wanted to give an articulate explanation of the benefits of having package declarations match file names, so that: # file is Foo/bar.pm package Foo::Bar; That was probably a typo, but I hope you mean

Re: Why should package declaration match filename?

2008-03-14 Thread Matisse Enzer
On Mar 14, 2008, at 6:53 PM, Michael G Schwern wrote: Matisse Enzer wrote: # file is Foo/bar.pm package Foo::Bar; That was probably a typo, Yes, a typo. Sorry to muddy the waters. Eric already covered the import() issue. Yes, and thank you Eric - I did not know that. There's

Re: Why should package declaration match filename?

2008-03-14 Thread Dave Rolsky
On Fri, 14 Mar 2008, Matisse Enzer wrote: I'm discussing some potential refactorings at $work at wanted to give an articulate explanation of the benefits of having package declarations match file names, so that: # file is Foo/bar.pm package Foo::Bar; One reason is so that when you see a