my $rv = sysseek(...); # Handle error die(...) if not $rv; # Convert "0 but true" to 0 $rv += 0; ...
Update: Oops, initial code sample was for sysread. Fixed for sysseek.
Update: ug, me need sleep. Applied tye's fix. Now going to bed.
In reply to Re: Problem with sysseek
by ikegami
in thread Problem with sysseek
by Chon-Ji
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |