FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Development

 
 
LinkBack Thread Tools
 
Old 08-07-2012, 09:54 AM
Jonas Smedegaard
 
Default Bug#684135: ITP: libio-detect-perl -- resolve file name from file handle

Package: wnpp
Severity: wishlist
Owner: Jonas Smedegaard <dr@jones.dk>

* Package name : libio-detect-perl
Version : 0.004
Upstream Author : Toby Inkster <tobyink@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:etect 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.


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120807095426.5748.62947.reportbug@auryn.jones.dk ">http://lists.debian.org/20120807095426.5748.62947.reportbug@auryn.jones.dk
 

Thread Tools




All times are GMT. The time now is 06:53 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org