Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Fork / use Warnings Confusion

by JavaFan (Canon)
on May 13, 2010 at 22:28 UTC ( [id://839915]=note: print w/replies, xml ) Need Help??


in reply to Fork / use Warnings Confusion

  1. You have two processes trying to attempt the print: both the parent and the child. But you are setting $output in only one of them. And in the other, since "lst" fails, $output is set to undef.
  2. The parent will wait. The child, which doesn't have a child process $pid, will not.
  3. It won't show you anything because printing undef prints the empty string. Even with two empty strings, there's still nothing to see.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-03-29 02:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found