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

Bug#1030397: ITP: libio-file-withfilename-perl -- filehandles that know their origin



Package: wnpp
Owner: Mason James <mtj@kohaaloha.com>
Severity: wishlist
X-Debbugs-CC: debian-devel@lists.debian.org, debian-perl@lists.debian.org

* Package name    : libio-file-withfilename-perl
  Version         : 0.01
  Upstream Author : Ivan Fomichev <ifomichev@cpan.org>
* URL             : https://metacpan.org/release/IO-File-WithFilename
* License         : Artistic or GPL-1+
  Programming Lang: Perl
  Description     : filehandles that know their origin

IO::File::WithFilename does everything that IO::File does, but implements
filename method, that File::Temp objects have. It lets you write the code
that is ignorant of what classes of objects it works with.

If you want to check if it is safe to call filename method, you are
recommended to call can method rather than to check an object's inheritance:

  print $obj->filename, "\n" if eval { $obj->can('filename') };

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.


Reply to: