in reply to Re^2: 1 Object 2 Files
in thread 1 Object 2 Files

Actually, you do if you want use File::Additional; to work. Perl does enforce that if you say use Foo::Bar::Baz; that there actually exists a Foo/Bar/Baz.pm somewhere in your @INC and that it has, somewhere, a line saying package Foo::Bar::Baz;. Otherwise, it will bitch at you.

Being right, does not endow the right to be rude; politeness costs nothing.
Being unknowing, is not the same as being stupid.
Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.

Replies are listed 'Best First'.
Re^4: 1 Object 2 Files
by Tanktalus (Canon) on Jan 11, 2005 at 20:57 UTC

    That has not been my experience:

    $ cat Foo.pm package Bar; 1; $ perl -e 'use Foo;' $ perl -v This is perl, v5.8.5 built for i686-linux Copyright 1987-2004, Larry Wall Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 5 source ki +t. Complete documentation for Perl, including FAQ lists, should be found +on this system using `man perl' or `perldoc perl'. If you have access to + the Internet, point your browser at http://www.perl.com/, the Perl Home Pa +ge.
      Huh. Learn something new every day. :-)

      I could have sworn this didn't work, but I tried it out on Perls back to 5.005_02 and it works just fine. Thanks for the lesson. :-)

      Being right, does not endow the right to be rude; politeness costs nothing.
      Being unknowing, is not the same as being stupid.
      Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
      Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.