Would that mean that a filehandle opened readonly would throw an exception if you attempted to either print or warn on it?
On 5/4/05, Juerd <[EMAIL PROTECTED]> wrote: > Gaal Yahas skribis 2005-05-04 17:24 (+0300): > > Ah yes, that's another thing I was wondering about: what does opening a > > pipe return. If it's a one-way pipe, okay, this may be a single handle; > > but for bidirectional opens, we need $in, $out, and $err handles; and > > That'd be tridirectional, then. > > A normal filehandle can already handle bidirection. > > I think the following solution suffices in a clean way: > > $h = open a pipe; > > Now, > $h.in; > $h.out; > $h.err; > > $h.print("foo"); # use $h.out > $l = $h.readline; # use $h.in > > > Juerd > -- > http://convolution.nl/maak_juerd_blij.html > http://convolution.nl/make_juerd_happy.html > http://convolution.nl/gajigu_juerd_n.html >