# New Ticket Created by  Juerd Waalboer 
# Please include the string:  [perl #131541]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=131541 >


Because putting bundled libraries in ./lib or ../lib relative to the
executable is so common, I'd like to request a feature for shortcuts for
these.

I'm thinking of:

    use lib :parentdir<lib>;
    # as a shortcut for:
    use lib ~$*PROGRAM.resolve.parent.sibling('lib');

and:

    use lib :bindir<lib>;
    # as a shortcut for:
    use lib ~$*PROGRAM.resolve.sibling('lib');

With defaults to 'lib' so that they can also be written as:

    use lib :parentdir;
    use lib :bindir;

Or maybe even just something that simply includes both ./lib and ../lib:

    use lib :dwim;

:-)
-- 
Met vriendelijke groet, // Kind regards, // Korajn salutojn,

Juerd Waalboer  <ju...@tnx.nl>
TNX

Reply via email to