logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ExtUtils::Helpers - Various portability utilities for module builders

Acknowledgements

       Olivier Mengué and Christian Walde made "make_executable" work on Windows.

Authors

       •   Ken Williams <kwilliams@cpan.org>

       •   Leon Timmermans <leont@cpan.org>

Description

       This module provides various portable helper functions for module building modules.

Functions

make_executable($filename)
       This makes a perl script executable.

   split_like_shell($string)
       This function splits a string the same way as the local platform does.

   detildefy($path)
       This function substitutes a tilde at the start of a path with the users homedir in an appropriate manner.

   man1_pagename($filename,$ext=$Config{man1ext})
       Returns the man page filename for a script.

   man3_pagename($filename,$basedir='lib',$ext=$Config{man3ext})
       Returns the man page filename for a Perl library.

Name

       ExtUtils::Helpers - Various portability utilities for module builders

Synopsis

        use ExtUtils::Helpers qw/make_executable split_like_shell/;

        unshift @ARGV, split_like_shell($ENV{PROGRAM_OPTS});
        write_script_to('Build');
        make_executable('Build');

Version

       version 0.028

See Also