From owner-cvs-ports@FreeBSD.ORG Mon Jan 26 17:44:14 2009 Return-Path: Delivered-To: cvs-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7647B106564A; Mon, 26 Jan 2009 17:44:14 +0000 (UTC) (envelope-from pgollucci@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 639388FC1B; Mon, 26 Jan 2009 17:44:14 +0000 (UTC) (envelope-from pgollucci@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n0QHiEdF056616; Mon, 26 Jan 2009 17:44:14 GMT (envelope-from pgollucci@repoman.freebsd.org) Received: (from pgollucci@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n0QHiEol056615; Mon, 26 Jan 2009 17:44:14 GMT (envelope-from pgollucci) Message-Id: <200901261744.n0QHiEol056615@repoman.freebsd.org> From: "Philip M. Gollucci" Date: Mon, 26 Jan 2009 17:44:14 +0000 (UTC) To: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: ports/net Makefile ports/net/p5-IO-MultiPipe Makefile distinfo pkg-descr pkg-plist X-BeenThere: cvs-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jan 2009 17:44:15 -0000 pgollucci 2009-01-26 17:44:14 UTC FreeBSD ports repository Modified files: net Makefile Added files: net/p5-IO-MultiPipe Makefile distinfo pkg-descr pkg-plist Log: Normally if a part of a pipe fails, depending on the location, it won't be detected. This breaks down a command involving pipes and runs each command seperately. It uses open3 to run each chunk of the pipe. use IO::MultiPipe; my $pipes = IO::MultiPipe->new(); #This sets the pipe that will be run. $pipes->set('sed s/-// | sed s/123/abc/ | sed s/ABC/abc/'); if ($pipes->{error}){ print "Error!\n"; } #'123-ABCxyz' through the command set above. my $returned=$pipes->run('123-ABCxyz'); WWW: http://search.cpan.org/~vvelox/IO-MultiPipe/ PR: ports/ports/130563 Submitted by: Zane C, Bowers Revision Changes Path 1.2067 +1 -0 ports/net/Makefile 1.1 +22 -0 ports/net/p5-IO-MultiPipe/Makefile (new) 1.1 +3 -0 ports/net/p5-IO-MultiPipe/distinfo (new) 1.1 +20 -0 ports/net/p5-IO-MultiPipe/pkg-descr (new) 1.1 +5 -0 ports/net/p5-IO-MultiPipe/pkg-plist (new)