> Has anyone read RFC 14? > > $FILE = open "</etc/motd"; > @doc = <$FILE>; > > $WEB = open http "http://www.yahoo.com"; > @html = <$WEB>; > > The next version (hopefully out this week) will clarify this syntax > further. > > -Nate This is a much friendlier looking approach to things. I also appreciate the flexibility offered. Will this incarnation of open() be able to deal with bi directional process communication? It is often desirous to interact with a process in the manner offered by IPC::open2 ... use IPC::Open2; open2(*README, *WRITEME, $program); print WRITEME "here's your input\n"; $output = <README>; close(WRITEME); close(README); but it would look much nicer in the framework of this version of open(), perhaps something like ... ($readme, $writeme) = open doublehandle "/path/program -args"; print $writeme "here's your input\n"; $output = $readme; $writeme->close; $readme->close; Thoughts? Greg -
- Re: RFC 33 (v2) Eliminate bareword filehandle... John Porter
- Re: RFC 33 (v2) Eliminate bareword fileha... Tom Christiansen
- Re: RFC 33 (v2) Eliminate bareword fileha... David L. Nicol
- Re: RFC 33 (v2) Eliminate bareword fi... Tom Christiansen
- Re: RFC 33 (v2) Eliminate bareword fi... Buddha Buck
- Re: RFC 33 (v2) Eliminate barewo... David L. Nicol
- Re: RFC 33 (v2) Eliminate barewo... Nathan Wiger
- Re: RFC 33 (v2) Eliminate barewo... Tom Christiansen
- Re: RFC 33 (v2) Eliminate barewo... Casey R. Tweten
- Re: RFC 33 (v2) Eliminate barewo... Peter Scott
- Re: RFC 33 (v2) Eliminate barewo... Gregory S Hayes
- Re: RFC 33 (v2) Eliminate barewo... Tom Christiansen
- Re: RFC 33 (v2) Eliminate barewo... Nathan Wiger
- Re: RFC 33 (v2) Eliminate barewo... Tom Christiansen
- Re: RFC 33 (v2) Eliminate barewo... Nathan Wiger
- Re: RFC 33 (v2) Eliminate bareword filehandles. Peter Scott
- ARGV vs $ARGV (was Re: RFC 33 (v2) Eliminate bare... Nathan Wiger
- Re: RFC 33 (v2) Eliminate bareword filehandles. Bart Lateur
- Re: RFC 33 (v2) Eliminate bareword filehandles. Tom Christiansen
- Re: RFC 33 (v2) Eliminate bareword filehandle... Bart Lateur
- Re: RFC 33 (v2) Eliminate bareword filehandles. Jonathan Scott Duff