in reply to example in book of Programming Perl does not work.
You wrote a wrong "-" symbol:
Perl does not consider "–" (chr(8211)) to be a dash ("-", chr(45)), so special open behaviour does not work in this case.$ LC_ALL=C perl -E'my $pid = open(STDOUT, "|–") // die $!' # your quot +e No such file or directory at -e line 1. $ perl -E'my $pid = open(STDOUT, "|-") // die $!' # entered via keyboa +rd $
|
---|
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:51 UTC | |
by MidLifeXis (Monsignor) on May 30, 2013 at 12:37 UTC | |
by yangy (Novice) on May 30, 2013 at 15:27 UTC | |
Re^2: example in book of Programming Perl does not work.
by derby (Abbot) on May 30, 2013 at 12:43 UTC |
In Section
Seekers of Perl Wisdom