[ 源代码: libio-file-withfilename-perl ]
软件包:libio-file-withfilename-perl(0.01-2)
libio-file-withfilename-perl 的相关链接
Debian 的资源:
下载源码包 libio-file-withfilename-perl:
- [libio-file-withfilename-perl_0.01-2.dsc]
- [libio-file-withfilename-perl_0.01.orig.tar.gz]
- [libio-file-withfilename-perl_0.01-2.debian.tar.xz]
维护小组:
外部的资源:
- 主页 [metacpan.org]
相似软件包:
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') };