David Golden > Tie-Handle-Offset > Tie::Handle::Offset

Download:
Tie-Handle-Offset-0.003.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.003   Source  

NAME ^

Tie::Handle::Offset - Tied handle that hides the beginning of a file

VERSION ^

version 0.003

SYNOPSIS ^

  use Tie::Handle::Offset;

  tie *FH, 'Tie::Handle::Offset', "<", $filename, { offset => 20 };

DESCRIPTION ^

This modules provides a file handle that hides the beginning of a file. After opening, the file is positioned at the offset location. seek() and tell() calls are modified to preserve the offset.

For example, tell($fh) will return 0, though the actual file position is at the offset. Likewise, seek($fh,80,0) will seek to 80 bytes from the offset instead of 80 bytes from the actual start of the file.

SUPPORT ^

Bugs / Feature Requests

Please report any bugs or feature requests through the issue tracker at http://rt.cpan.org/Public/Dist/Display.html?Name=Tie-Handle-Offset. You will be notified automatically of any progress on your issue.

Source Code

This is open source software. The code repository is available for public review and contribution under the terms of the license.

https://github.com/dagolden/tie-handle-offset

  git clone https://github.com/dagolden/tie-handle-offset.git

AUTHOR ^

David Golden <dagolden@cpan.org>

COPYRIGHT AND LICENSE ^

This software is Copyright (c) 2012 by David Golden.

This is free software, licensed under:

  The Apache License, Version 2.0, January 2004
syntax highlighting: