[Israel.pm] convert perl string to file handle

Gaal Yahas gaal at forum2.org
Sun Jun 6 08:16:49 PDT 2004


On Sun, Jun 06, 2004 at 05:54:49PM +0300, Tal Kelrich wrote:
> how about:
> 
> $buffer="blah";
> pipe R_P,W_P;
> print W_P $buffer;
> close W_P;
> 
> #now hand in the other side of the pipe
> print <R_P>;

This would hang on large data, because the print would block whenever
the pipe's buffer is filled.

-- 
Gaal Yahas <gaal at forum2.org>
http://gaal.livejournal.com/



More information about the Perl mailing list