1TAP::Parser::Utils(3) User Contributed Perl DocumentationTAP::Parser::Utils(3)
2
3
4

NAME

6       TAP::Parser::Utils - Internal TAP::Parser utilities
7

VERSION

9       Version 3.28
10

SYNOPSIS

12         use TAP::Parser::Utils qw( split_shell )
13         my @switches = split_shell( $arg );
14

DESCRIPTION

16       FOR INTERNAL USE ONLY!
17
18   INTERFACE
19       "split_shell"
20
21       Shell style argument parsing. Handles backslash escaping, single and
22       double quoted strings but not shell substitutions.
23
24       Pass one or more strings containing shell escaped arguments. The return
25       value is an array of arguments parsed from the input strings according
26       to (approximate) shell parsing rules. It's legal to pass "undef" in
27       which case an empty array will be returned. That makes it possible to
28
29           my @args = split_shell( $ENV{SOME_ENV_VAR} );
30
31       without worrying about whether the environment variable exists.
32
33       This is used to split HARNESS_PERL_ARGS into individual switches.
34
35
36
37perl v5.16.3                      2013-05-02             TAP::Parser::Utils(3)
Impressum