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]