On Nov 25, 7:44 am, raheel.has...@gmail.com (Raheel Hassan) wrote: > > I am unable to understand the use of these statements in the program, I have > read about POSIX in the CPAN but still things are not clear to me. > > use POSIX ":sys_wait_h"; #What sys_wait_h does? > > waitpid($_,&WNOHANG) # what is WNOHANG?
Short answer: perldoc -f waitpid ; perldoc -f wait Longer: perldoc perlipc But you'll need some basic background in Unix and network programming as well. If you have a Unix OS available, see 'man waitpid'. There are many tutorials online that'll give you overviews as well. > > my $message = $object -> receive($id,$length,"IPC_NOWAIT"); #what is the > functionality of receive function i did not found any documentation about > this function. At last what IPC_NOWAIT does in receive function. This is Unix SysV IPC stuff. Again you'll need some Unix background so look online. There's an overview of System V IPC in the "Programming Perl" book. Also a short example using IPC::SysV near the end of the 'perlipc' doc. Similiar modules using SysV IPC: IPC::Msg, IPC::Semaphore, IPC::SharedMemory. -- Charles DeRykus -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/