CS3172 > Mats > examples/ > perl/ > ipc/ > pipes/ > pipe-errors/

J. Blustein

Web-centric Computing

[Crs | Ann | Mats | Res]

Some Example Code

pipe-errors/ directory

Directories

pipes/ parent directory
this directory

Files

README
Some notes about the programs. All these programs are from Network Programming With Perl by Lincoln D. Stein
Errno.pm
from CPAN
read_three.pl
reads three lines from standard input
01_write_ten.pl
opens a pipe to read_three.pl and tries to write ten lines, uses very little error checking
02_write_ten_ph.pl
like 01_write_ten.pl but checks for PIPE signals and stops as soon as it is recieved
03_write_ten_i.pl
like 01_write_ten.pl but checks for errors after each print statement and stops as soon as an error is detected
04_write_ten_popi.pl
intercepts the PIPE signal (as 02_write_ten_ph.pl does) and decides what to do depending on what the real error condition was

http://web.cs.dal.ca/~jamie/teach/course/CS/3172/examples/perl/ipc/pipes/pipe-errors/README.shtml
Version:
Sunday, 29-Nov-2009 14:30:03 AST
CS 3172 Prof:
J. Blustein <jamie@cs.dal.ca>
Shortcuts
Accesskey menu
Sitemap
Site search

Valid XHTML 1.0!