diff options
Diffstat (limited to 't/test.pl')
-rw-r--r-- | t/test.pl | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -364,7 +364,7 @@ sub _quote_args { } } -sub runperl { +sub _create_runperl { # Create the string to qx in runperl(). my %args = @_; my $runperl = $^X; unless ($args{nolib}) { @@ -433,6 +433,11 @@ sub runperl { $runperldisplay =~ s/\n/\n\#/g; print STDERR "# $runperldisplay\n"; } + return $runperl; +} + +sub runperl { + my $runperl = &_create_runperl; my $result = `$runperl`; $result =~ s/\n\n/\n/ if $is_vms; # XXX pipes sometimes double these return $result; |