> 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
-

Reply via email to