go ahead... be a heretic | |
PerlMonks |
Re^2: base.pm vs @ISA (typos)by adrianh (Chancellor) |
on Oct 09, 2007 at 11:52 UTC ( [id://643668]=note: print w/replies, xml ) | Need Help?? |
For me, the major advantage of base.pm was that it originally would catch typos for you. Since use base qw( Food::Barf ); would die if there was no Food/Barf.pm to load (because the module's name is actually Foo::Bar). That's interesting. I never knew base() ever did that. When did the functionality change? Personally I like the current behaviour more - since I can switch between inline and file-based classes without having to change any code. A definite plus as far as I'm concerned.
In Section
Meditations
|
|