| 1 | package IO::Die; | ||
| 2 | |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | #---------------------------------------------------------------------- | ||
| 6 | # CONVENIENCE | ||
| 7 | # | ||
| 8 | |||
| 9 | 1 | my $Fcntl_SEEK_CUR = 1; | |
| 10 | |||
| 11 | #Note that, since we die() on error, this does NOT return "0 but true" | ||
| 12 | #as sysseek() does; instead it returns just a plain 0. | ||
| 13 | 3 | ▶ | sub systell { |
|
Subroutine
systell: called CC=1 SCAR=0.0
| |||
| 14 | 3 | my ( $NS, $fh ) = @_; | |
| 15 | |||
| 16 | #cf. perldoc -f tell | ||
| 17 | 3 | return 0 + $NS->sysseek( $fh, 0, $Fcntl_SEEK_CUR ); | |
| 18 | } | ||
| 19 | |||
| 20 | 1 | 1; | |