Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > An observation about open($fh, '-|')

Reply
Thread Tools

An observation about open($fh, '-|')

 
 
Rainer Weikusat
Guest
Posts: n/a
 
      12-27-2011
According to the documentation of the open function the return value
should be

the pid of the child within the parent process, and 0 within the
child process. (Use "defined($pid)" to determine whether the
open was successful.)

As opposed to this, at least for perl 5.10.1, the open call will die
('croak', actually) with a message "Can't fork" when the fork failed
because of any error except EAGAIN.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MS Self-Paced Training Book for 70-292 & 70-296 Observation =?Utf-8?B?VEJhY2tzdHJvbQ==?= MCSE 0 01-11-2006 02:22 AM
just an observation Adam Bailey Firefox 2 11-16-2003 07:28 AM
.NET Books - Observation dotnetjournal MCSD 0 11-13-2003 12:16 PM
Roedy style observation ;-/ VisionSet Java 30 09-30-2003 04:45 PM
New Observation Ezeh Ikechukwu MCSE 4 09-19-2003 10:30 PM



Advertisments