Well, the problem is that I have to print an html header back to the client, 
and the usual print, I am getting irregular response?

Thus, I am hoping to use the sysread and syswrite command to help me pass 
the html message over to prevent any EOF characters problem?

This is a rather sensitive issue when the browser upon receiving the 
response will react.  So the advice u r giving is to save the html response 
into a file, open the file by passing into a file handle and then sysread 
the filehandle into the buffer and then syswriting it out?

I ain't very good in perl and network stuff, kindly advice?

Thanks!



>From: Felix Geerinckx <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: Sysread and syswrite
>Date: 22 May 2002 08:21:25 -0000
>
>on Wed, 22 May 2002 08:07:07 GMT, [EMAIL PROTECTED] (Chaoz
>Inferno) wrote:
>
> > I want to print out a variable to my client over the internet, but
> > would like to use syswrite and sysread would help to reduce
> > mistakes in EOF characters.
>
>Why do you think that?
>
>
> > #!/usr/bin/perl
> > my $buffer;
> > my $test = "hello, how do u do";
> >
> > #reading into buffer
> > sysread($test, $buffer, 1024);
>
>'sysread' doesn't read from strings, but from filehandles. See
>
>       perldoc -f sysread
>
>You should always check the return value of this type of call!
>
>--
>felix
>
>--
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>


_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to