On Wed, Jan 08, 2003 at 05:14:06PM +0100, frederic fabbro wrote: > I'm not even sure how that would parse, though that: > @keep <~ grep /good/ <~ @list ~> grep /bad!/ ~> @throw; > would go like: > ( @keep <~ grep /good/ <~ @list ) ~> grep /bad!/ ~> @throw; > > which is probably not what i wanted...
Oh, then we just need a syntax to split the streams. ... I know! @list ~| grep /bad!/ ~> @throw ~| grep /good/ ~> @keep; which, of course, could be written in the more readable form: @list ~| grep /bad!/ ~> @throw ~| grep /good/ ~> @keep; And that, of course, leads us to sort of "unzip" were mutual exclusion is not a requisite: @list ~| grep length == 1 ~> @onecharthings ~| grep [0..29] ~> @numberslessthan30 ~| grep /^\w+$/ ~> @words ~| grep $_%2==0 ~> @evennumbers; :-) -Scott -- Jonathan Scott Duff [EMAIL PROTECTED]