| 1 | package IO::Die; | ||||||||||
| 2 | |||||||||||
| 3 | 4 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | #NOTE: See about read/sysread; the same duplicated code problem | ||||||||||
| 6 | #applies to seek/sysseek. | ||||||||||
| 7 | |||||||||||
| 8 | 8 | ▶ | sub seek { | ||||||||
|
Subroutine
seek: called CC=2 SCAR=7.4
| |||||||||||
| 9 | 8 | my ( $NS, $fh, $pos, $whence ) = @_; | |||||||||
| 10 | |||||||||||
| 11 | 8 | local ( $!, $^E ); | |||||||||
| 12 | 8 | ▶ | my $ok = CORE::seek( $fh, $pos, $whence ) or do { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 13 | 0 | $NS->__THROW( 'FileSeek', whence => $whence, position => $pos ); | |||||||||
| 14 | }; | ||||||||||
| 15 | |||||||||||
| 16 | 8 | return $ok; | |||||||||
| 17 | } | ||||||||||
| 18 | |||||||||||
| 19 | 4 | 1; | |||||||||