Bug#684135: ITP: libio-detect-perl -- resolve file name from file handle
Jonas Smedegaard
dr at jones.dk
Tue Aug 7 09:54:26 UTC 2012
Package: wnpp
Severity: wishlist
Owner: Jonas Smedegaard <dr at jones.dk>
* Package name : libio-detect-perl
Version : 0.004
Upstream Author : Toby Inkster <tobyink at cpan.org>
* URL : https://metacpan.org/release/IO-Detect
* License : Artistic or GPL-1+
Programming Lang: Perl
Description : resolve file name from file handle
It is stupidly complicated to detect whether a given scalar is a
filehandle (or something filehandle like) in Perl. IO::Handle attempts
to do so, but probably falls short in some cases. The primary advantage
of using this module is that it gives you somebody to blame (me) if
your code can't detect a filehandle.
.
The main use case for IO::Detect is for when you are writing functions
and you want to allow the caller to pass a file as an argument without
being fussy as to whether they pass a file name or a file handle.
More information about the pkg-perl-maintainers
mailing list