1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/devel/p5-IO-Detect/pkg-descr
Sunpoet Po-Chuan Hsieh 8f4334e82b - Add p5-IO-Detect 0.005
It is stupidly complicated to detect whether a given scalar is a filehandle (or
something filehandle like) in Perl. This module 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.

WWW: http://search.cpan.org/dist/IO-Detect/

Feature safe:	yes
2012-12-04 17:10:03 +00:00

11 lines
568 B
Plaintext

It is stupidly complicated to detect whether a given scalar is a filehandle (or
something filehandle like) in Perl. This module 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.
WWW: http://search.cpan.org/dist/IO-Detect/