On 7/8/05, Marvin Humphrey <[EMAIL PROTECTED]> wrote:
> Would fprintf help you?
> 
> Say that you replace instances of printf("foo%s", bar) in enum_files
> with fprintf(selected_handle, "foo%s", bar);
> 
> You then write a c_select function() which changes the value of
> selected_handle and call that each time you call Perl's select().
> 
> Marvin Humphrey
> Rectangular Research
> http://www.rectangular.com/
> 
> 

Well I had already thought about this but I see 2 problems here: first
of all, passing around filehandles. I'm not really an Inline Guru and
haven't passed around anything more than basic scalars and such. I'm
not sure how I would go around with a FILE*. Second, I'm not sure how
the whole fopen(...), fclose(...), etc. ritual would work with a FILE*
imported from Perl-space. Would it be already open, would I have to
close it when I'm done? What about when the filehandle is not really
associated with a file like the case here with $iostr?


Alex

Reply via email to