in reply to Re: pretending that the contents of a variable are files
in thread pretending that the contents of a variable are files

perldoc -f open says (among other things):
You are not allowed to "open" to a command that pipes both in *and* ou +t, but see IPC::Open2, IPC::Open3, "Bidirectional Communication with Another Process" in perlipc for alte +rnatives.
so I suggest hopping to perldoc IPC::Open2 and perldoc IPC::Open3 directly... update: changed pre- to code-tags