use FileHandle; sub in { $_[0]->getline } sub out { $_[0]->print(@_[1..$#_]) } out \*STDOUT, in \*STDIN; [download]
In reply to Re: $_[0] as a filehandle by dpuu in thread $_[0] as a filehandle by jey