Your second version seems more perlish to me, although I'd
probably fiddle with some of the names and it's not clear
why you have the array-ref brackets. I'd suggest:

my($read, $write) = kpipe(...); #korn (cob) pipe!
#... is a string that is parsed a la ksh syntax, or a pre-decomposed list:
# 'mutt', '-a', ksub('<', 'gzip', '-c', $some_file), '-s', 'mmmm data', '--', 
'[email protected]'

You might allow kpipe to accept an existing pair of handles,
although it seems unlikely that would be needed/could be worked
if not officially supported.

_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to