That appears to have been fixed since 2011:

C:\usr\local\share\PassThru\perl>perl -Mwarnings -Mstrict -MConfig -le + "my $cmd = q|C:\Program Files\Mozilla Firefox\firefox.exe|; open my +$fh, '-|', $cmd, '--version' or die $!; m y $out = do { local $/; <$fh> }; close $fh or die $! ? $! : qq(\$?=$?) +; print $out; print $Config{myuname}" Mozilla Firefox 61.0.2 Win32 strawberry-perl 5.26.2.1 #1 Sun Apr 15 13:52:49 2018 x64

Trying to narrow it down a bit, using berrybrew to help me, it appears it was sometime between v5.20 and v5.26:

C:\usr\local\share\PassThru\perl>berrybrew use 5.10.1_32,5.16.3_64,5.2 +0.3_64,5.26.1_32 perl-5.10.1_32 ============== Microsoft Windows [Version 10.0.16299.611] (c) 2017 Microsoft Corporation. All rights reserved. <berrybrew use 5.10.1_32>: run "exit" leave this environment C:\usr\local\share\PassThru\perl>perl -Mwarnings -Mstrict -MConfig -le + "my $cmd = q|C:\Program Files\Mozilla Firefox\firefox.exe|; open my +$fh, '-|', $cmd, '--version' or die $!; m y $out = do { local $/; <$fh> }; close $fh or die $! ? $! : qq(\$?=$?) +; print $out; print $Config{myuname}" List form of pipe open not implemented at -e line 1. <berrybrew use 5.10.1_32>: run "exit" leave this environment C:\usr\local\share\PassThru\perl>exit Exiting <berrybrew use 5.10.1_32> perl-5.16.3_64 ============== Microsoft Windows [Version 10.0.16299.611] (c) 2017 Microsoft Corporation. All rights reserved. <berrybrew use 5.16.3_64>: run "exit" leave this environment C:\usr\local\share\PassThru\perl>perl -Mwarnings -Mstrict -MConfig -le + "my $cmd = q|C:\Program Files\Mozilla Firefox\firefox.exe|; open my +$fh, '-|', $cmd, '--version' or die $!; m y $out = do { local $/; <$fh> }; close $fh or die $! ? $! : qq(\$?=$?) +; print $out; print $Config{myuname}" List form of pipe open not implemented at -e line 1. <berrybrew use 5.16.3_64>: run "exit" leave this environment C:\usr\local\share\PassThru\perl>exit Exiting <berrybrew use 5.16.3_64> perl-5.20.3_64 ============== Microsoft Windows [Version 10.0.16299.611] (c) 2017 Microsoft Corporation. All rights reserved. <berrybrew use 5.20.3_64>: run "exit" leave this environment C:\usr\local\share\PassThru\perl>perl -Mwarnings -Mstrict -MConfig -le + "my $cmd = q|C:\Program Files\Mozilla Firefox\firefox.exe|; open my +$fh, '-|', $cmd, '--version' or die $!; m y $out = do { local $/; <$fh> }; close $fh or die $! ? $! : qq(\$?=$?) +; print $out; print $Config{myuname}" List form of pipe open not implemented at -e line 1. <berrybrew use 5.20.3_64>: run "exit" leave this environment C:\usr\local\share\PassThru\perl>exit Exiting <berrybrew use 5.20.3_64> perl-5.26.1_32 ============== Microsoft Windows [Version 10.0.16299.611] (c) 2017 Microsoft Corporation. All rights reserved. <berrybrew use 5.26.1_32>: run "exit" leave this environment C:\usr\local\share\PassThru\perl>perl -Mwarnings -Mstrict -MConfig -le + "my $cmd = q|C:\Program Files\Mozilla Firefox\firefox.exe|; open my +$fh, '-|', $cmd, '--version' or die $!; m y $out = do { local $/; <$fh> }; close $fh or die $! ? $! : qq(\$?=$?) +; print $out; print $Config{myuname}" Mozilla Firefox 61.0.2 Win32 strawberry-perl-no64 5.26.1.1 #1 Sun Sep 24 11:38:56 2017 i386 <berrybrew use 5.26.1_32>: run "exit" leave this environment C:\usr\local\share\PassThru\perl>exit Exiting <berrybrew use 5.26.1_32>

In reply to Re^5: Execute command with spaces in perl by pryrt
in thread Execute command with spaces in perl by naveenp5

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.