perllearner has asked for the wisdom of the Perl Monks concerning the following question:
$myBuf is returning values such as þ & ÿ. I am hoping to get a hex return FE or FF. Thanks in advance... my $myBuf; my $selector = IO::Select->new(\*DisplayIO); if ($selector->can_read(3)) { # 3 second timeout. sysread (DisplayIO, $myBuf, 1); print "Buffer returned : $myBuf\n" } else { print "Nothing in buffer\n"; } ..
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: sysread returning weird values
by Zaxo (Archbishop) on Jun 17, 2004 at 23:33 UTC | |
|
Re: sysread returning weird values
by Ido (Hermit) on Jun 17, 2004 at 23:51 UTC |