in reply to Re^2: Using <<EOL > output.out and EOL
in thread Using <<EOL > output.out and EOL
I assume you cannot do |- on Windows, is that a correct assumption?No. Consider the code:
And output:# p_1.pl use warnings; use strict; open my $ph, '|-', 'perl p_2.pl' or die 'opening pipe to p_2: $!'; print $ph <<EOP; hi there bye now EOP close $ph or die 'closing: $!'; print "$0 exiting \n"; exit; # p_2.pl use warnings; use strict; print "in $0: \U$_" while <STDIN>; print "in $0: exiting \n"; exit;
For the rest, please see ikegami's Re^3: Using <<EOL > output.out and EOL.>perl p_1.pl in p_2.pl: HI THERE in p_2.pl: BYE NOW in p_2.pl: exiting p_1.pl exiting
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Using <<EOL > output.out and EOL
by newbie01.perl (Sexton) on Dec 03, 2009 at 12:42 UTC | |
by AnomalousMonk (Archbishop) on Dec 03, 2009 at 18:57 UTC |