http://www.perlmonks.org?node_id=1035970


in reply to example in book of Programming Perl does not work.

Greetings yangy,

You have an en dash in your open statement.

return if my $pid = open(STDOUT, "|–");
Changing it to a regular hyphen minus makes it work for me.
return if my $pid = open(STDOUT, "|-");

Replies are listed 'Best First'.
Re^2: example in book of Programming Perl does not work.
by yangy (Novice) on May 30, 2013 at 08:53 UTC
    thank you.