Keep It Simple, Stupid | |
PerlMonks |
Re: Re: Streaming to Handlesby crabbdean (Pilgrim) |
on May 05, 2004 at 12:50 UTC ( [id://350751]=note: print w/replies, xml ) | Need Help?? |
I still haven't found a great solution to this problem. Forking to me seems overly complicated implementation and doesn't create a simple interface for users. This solution suggested above to me seems the closest to what I can imagine. But two things: In this example your print to the FILEHANDLE and the bound variable are in the same program. I've attempted to seperate them into a script and a seperate module method but was unsuccessful. Are you able to demonstrate the above in this way. That would be really helpful. Secondly I had another thought along similar lines: I could create a object variable in my object like this: and then in my script make reference to this variable like this: Now I know straight up just looking at it that this code won't work in the foreach statement but is anyone getting the gist of what I'm attempting. In my program you can instantly dereference this $f->{file} at any time to access the file name it is currently working on. But how does the script know when this piece of memory changes value to rewrite it? Do you just call it in a "while" loop. Hmmmm ... the idea has merit but I'm not sure how to implement this. Surely there must be a way to stream ... how is it done? Somebody .. anybody ... are you out there hearing my cries for help? How do you do this? There is a way, I just need to know how! Dean The Funkster of Mirth Programming these days takes more than a lone avenger with a compiler. - sam RFC1149: A Standard for the Transmission of IP Datagrams on Avian Carriers
In Section
Seekers of Perl Wisdom
|
|