[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#916535: ITP: libtie-handle-offset-perl -- module to provide tied handle that hides the beginning of a file

Package: wnpp
Owner: gregor herrmann <gregoa@debian.org>
Severity: wishlist
X-Debbugs-CC: debian-devel@lists.debian.org, debian-perl@lists.debian.org

* Package name    : libtie-handle-offset-perl
  Version         : 0.004
  Upstream Author : David Golden <dagolden@cpan.org>
* URL             : https://metacpan.org/release/Tie-Handle-Offset
* License         : Apache-2.0
  Programming Lang: Perl
  Description     : module to provide tied handle that hides the beginning of a file

Tie::Handle::Offset 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.

The included Tie::Handle::SkipHeader module automatically hides an
email-style message header. After opening the file, it reads up to a blank or
white-space-only line and sets the offset to the next byte.

The package will be maintained under the umbrella of the Debian Perl Group.

Generated with the help of dpt-gen-itp(1) from pkg-perl-tools.

Attachment: signature.asc
Description: Digital Signature

Reply to: