|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
Re: Streaming to Handlesby matija (Priest) |
| on May 01, 2004 at 09:35 UTC ( #349589=note: print w/ replies, xml ) | Need Help?? |
|
You want to write into a file in the module and then read it the calling program and write a bit more and read a bit more? That is NOT going to work. Not with STDOUT, not with pipes, not even with sockets. It is not the propper way to communicate with the subroutine. Why don't you have the subroutine simply return a bunch of lines together in a string (or an array), and then process them in the calling program as you see fit? That will work much better.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||