[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@52.14.66.242: ~ $
package TAP::Parser::Utils;

use strict;
use Exporter;
use vars qw($VERSION @ISA @EXPORT_OK);

@ISA       = qw( Exporter );
@EXPORT_OK = qw( split_shell );

=head1 NAME

TAP::Parser::Utils - Internal TAP::Parser utilities

=head1 VERSION

Version 3.28

=cut

$VERSION = '3.28';

=head1 SYNOPSIS

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

=head1 DESCRIPTION

B<FOR INTERNAL USE ONLY!>

=head2 INTERFACE

=head3 C<split_shell>

Shell style argument parsing. Handles backslash escaping, single and
double quoted strings but not shell substitutions.

Pass one or more strings containing shell escaped arguments. The return
value is an array of arguments parsed from the input strings according
to (approximate) shell parsing rules. It's legal to pass C<undef> in
which case an empty array will be returned. That makes it possible to

    my @args = split_shell( $ENV{SOME_ENV_VAR} );

without worrying about whether the environment variable exists.

This is used to split HARNESS_PERL_ARGS into individual switches.

=cut

sub split_shell {
    my @parts = ();

    for my $switch ( grep defined && length, @_ ) {
        push @parts, $1 while $switch =~ /
        ( 
            (?:   [^\\"'\s]+
                | \\. 
                | " (?: \\. | [^"] )* "
                | ' (?: \\. | [^'] )* ' 
            )+
        ) /xg;
    }

    for (@parts) {
        s/ \\(.) | ['"] /defined $1 ? $1 : ''/exg;
    }

    return @parts;
}

1;

Filemanager

Name Type Size Permission Actions
Iterator Folder 0755
Result Folder 0755
Scheduler Folder 0755
SourceHandler Folder 0755
YAMLish Folder 0755
Aggregator.pm File 9.06 KB 0644
Grammar.pm File 15.34 KB 0644
Iterator.pm File 2.98 KB 0644
IteratorFactory.pm File 7.92 KB 0644
Multiplexer.pm File 4.19 KB 0644
Result.pm File 6.05 KB 0644
ResultFactory.pm File 4.17 KB 0644
Scheduler.pm File 11.28 KB 0644
Source.pm File 9.36 KB 0644
SourceHandler.pm File 5.12 KB 0644
Utils.pm File 1.44 KB 0644