maxy has asked for the wisdom of the Perl Monks concerning the following question:

HI, I want to read/write data to a buffer and then send it over network, but i don't know how to do it, Can any one give a hand in solving the following questions? how do i create buffer in perl? do i need to create different buffers for read and write? how to create sockets without its data being sent over network? and how to check buffer how much(byte) of data is in buffer? (i m new to programming and new to perl) Thanks Monks!

Replies are listed 'Best First'.
Re: How to buffer data?
by TGI (Parson) on Nov 25, 2008 at 22:42 UTC
Re: How to buffer data?
by kennethk (Abbot) on Nov 25, 2008 at 21:57 UTC
    It sounds like you are working at a much lower level than you need to. I would recommend heading over to www.cpan.org to find what is likely an existing implementation of the problem you are trying to solve. What protocol are you trying to use, or what problem are you trying to solve? Chances are there is an implementation in the Net:: family of modules.