diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-05-11 17:44:28 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-05-11 17:44:28 +0000 |
commit | 4cd2bd1f390724a103e72b993d7f67fb405628ad (patch) | |
tree | 455164c04057671fb3d5aa316c92c23e580f51d1 /t/test.pl | |
parent | 61bdadae648d36c1e21a073fae0f539b8ae699bf (diff) | |
download | perl-4cd2bd1f390724a103e72b993d7f67fb405628ad.tar.gz |
Separate the creation of the command to run by
runperl() into its own function, _create_runperl().
p4raw-id: //depot/perl@19489
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; |