Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by vinoth.ree (Parson)
on May 30, 2013 at 05:30 UTC ( #1035963=note: print w/ replies, xml ) Need Help??


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

Hi yangy

I have tried the same, in my systems its works correctly. I am also using ubuntu only.

What PID is printing in the code?

print "\$pid is : $pid"

I am getting 0.

This line raises the error for you

die "cannot fork: $!" unless defined $pid;
All is well


Comment on Re: example in book of Programming Perl does not work.
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2014-09-01 19:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (16 votes), past polls