Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: example in book of Programming Perl does not work.

by farang (Chaplain)
on May 30, 2013 at 06:09 UTC ( #1035970=note: print w/ replies, xml ) Need Help??


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, "|-");


Comment on Re: example in book of Programming Perl does not work.
Select or Download Code
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1035970]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2015-08-04 07:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (61 votes), past polls