#! perl -slw
use strict;
open PIPE, '-|', q[ c:\\perl32\\bin\\perl.exe -v ] or die $^E;
print "<<<$_>>>" while <PIPE>;
Produces this output:
C:\test>\perl32\bin\perl junk99.pl
<<<
>>>
<<<This is perl, v5.8.9 built for MSWin32-x86-multi-thread
>>>
<<<(with 12 registered patches, see perl -V for more detail)
>>>
<<<
>>>
<<<Copyright 1987-2008, Larry Wall
>>>
<<<
>>>
<<<Binary build 826 [290470] provided by ActiveState http://www.Active
+State.com
>>>
<<<Built May 24 2009 09:21:05
>>>
<<<
>>>
<<<Perl may be copied only under the terms of either the Artistic Lice
+nse or the
>>>
<<<GNU General Public License, which may be found in the Perl 5 source
+ kit.
>>>
<<<
>>>
<<<Complete documentation for Perl, including FAQ lists, should be fou
+nd on
>>>
<<<this system using "man perl" or "perldoc perl". If you have access
+ to the
>>>
<<<Internet, point your browser at http://www.perl.org/, the Perl Home
+ Page.
>>>
<<<
>>>
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
In the absence of evidence, opinion is indistinguishable from prejudice.
|