Env-ShellWords

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

Revision history for Env-ShellWords

0.02      2017-08-25 10:07:46 -0400
  - customize join and split with callbacks

0.01      2017-02-16 20:41:09 +1100
  - initial version

README  view on Meta::CPAN


    This module provides an array like interface to environment variables
    that contain flags. For example Autoconf can uses the environment
    variables like CFLAGS or LDFLAGS, and this allows you to manipulate
    those variables without doing space quoting and other messy mucky
    stuff.

    The intent is to use this from alienfile to deal with hierarchical
    prerequisites.

    You can provide split and join callbacks when you tie:

     use Env::ShellWords;
     # split on any space, ignore quotes
     tie my @FOO, 'Env::ShellWords',
       sub { split /\s+/, $_[0] },
       sub { join ' ', @_ };

    Which may be useful if you have to split on words on an operating
    system with a different specification.

lib/Env/ShellWords.pm  view on Meta::CPAN

=head1 DESCRIPTION

This module provides an array like interface to environment variables
that contain flags.  For example Autoconf can uses the environment
variables like C<CFLAGS> or C<LDFLAGS>, and this allows you to manipulate
those variables without doing space quoting and other messy mucky stuff.

The intent is to use this from L<alienfile> to deal with hierarchical
prerequisites.

You can provide split and join callbacks when you tie:

 use Env::ShellWords;
 # split on any space, ignore quotes
 tie my @FOO, 'Env::ShellWords',
   sub { split /\s+/, $_[0] },
   sub { join ' ', @_ };

Which may be useful if you have to split on words on an operating
system with a different specification.

xt/author/pod_spelling_system.t  view on Meta::CPAN

Ollis
Mojolicious
plicease
CPAN
reinstall
TODO
filename
filenames
login
callback
callbacks
standalone
VMS
hostname
hostnames
TCP
UDP
IP
API
MSWin32
OpenBSD



( run in 2.480 seconds using v1.01-cache-2.11-cpan-9b1e4054eb1 )