Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Actually, I've always wondered...

    use lib 't/tests', 't/lib';

    Does the lib pragma try to convert those paths to the native file system, or have we all just been doing it wrong all these years instead of doing catdir or path?
    • Does the lib pragma try to convert those paths to the native file system

      Yup. See perldoc lib :-)

      • Well, I have, but it reads non clear in a clear but not clear sort of way. :-)

        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).

        This is from Perl 5.8.8. "In the future". Lot's of mention of MacOS. Nothing that leads me to believe that it's totally safe "now" vs. "in the future". :-)

        • 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.

          seems pretty clean to me :-)