| 1 |
NAME |
| 2 |
Tie::Handle::Offset - Tied handle that hides the beginning of a file |
| 3 |
|
| 4 |
VERSION |
| 5 |
version 0.004 |
| 6 |
|
| 7 |
SYNOPSIS |
| 8 |
use Tie::Handle::Offset; |
| 9 |
|
| 10 |
tie *FH, 'Tie::Handle::Offset', "<", $filename, { offset => 20 }; |
| 11 |
|
| 12 |
DESCRIPTION |
| 13 |
This modules provides a file handle that hides the beginning of a file. |
| 14 |
After opening, the file is positioned at the offset location. "seek()" |
| 15 |
and "tell()" calls are modified to preserve the offset. |
| 16 |
|
| 17 |
For example, "tell($fh)" will return 0, though the actual file position |
| 18 |
is at the offset. Likewise, "seek($fh,80,0)" will seek to 80 bytes from |
| 19 |
the offset instead of 80 bytes from the actual start of the file. |
| 20 |
|
| 21 |
SUPPORT |
| 22 |
Bugs / Feature Requests |
| 23 |
Please report any bugs or feature requests through the issue tracker at |
| 24 |
<https://github.com/dagolden/tie-handle-offset/issues>. You will be |
| 25 |
notified automatically of any progress on your issue. |
| 26 |
|
| 27 |
Source Code |
| 28 |
This is open source software. The code repository is available for |
| 29 |
public review and contribution under the terms of the license. |
| 30 |
|
| 31 |
<https://github.com/dagolden/tie-handle-offset> |
| 32 |
|
| 33 |
git clone https://github.com/dagolden/tie-handle-offset.git |
| 34 |
|
| 35 |
AUTHOR |
| 36 |
David Golden <[email protected]> |
| 37 |
|
| 38 |
COPYRIGHT AND LICENSE |
| 39 |
This software is Copyright (c) 2012 by David Golden. |
| 40 |
|
| 41 |
This is free software, licensed under: |
| 42 |
|
| 43 |
The Apache License, Version 2.0, January 2004 |
| 44 |
|