![]() |
|
Syntactic Confectionery Delight | |
PerlMonks |
Re: Reading froma dynamic file handleby mikeock (Hermit) |
on Nov 22, 2005 at 16:11 UTC ( #510841=note: print w/replies, xml ) | Need Help?? |
I always loop through a socket connection to get the data that I want. my code would be as follows:
Code is untested
if the code is called in a subroutine, like the above, you can then call the subroutine to loop through the code that you want to send to the socket.
Hope this helps?! Edit:Added the undef to clear the socket connection when done.
In Section
Seekers of Perl Wisdom
|
|