On Sep 4, 2004, at 2:32 AM, Matt Sergeant wrote:
I thought 'use lib' (or perl's require internals) fixed this stuff up internally anyhow?
Oh!
CAVEATS
In order to keep lib.pm small and simple, it only works with Unix
filepaths. This doesn't mean it only works on Unix, but non-Unix users
must first translate their file paths to Unix conventions.
# VMS users wanting to put [.stuff.moo] into # their @INC would write use lib 'stuff/moo';
NOTES
In the future, this module will likely use File::Spec for determining
paths, as it does now for Mac OS (where Unix-style or Mac-style paths
work, and Unix-style paths are converted properly to Mac-style paths
before being added to @INC).
How cool is that? I had no idea; someone else had told me a long time ago to use File::Spec with it. I'll happily dump all those File::Spec dependencies in modules that do this (quite a lot of them).
Cheers Matt!
David
