[ ソース: 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') };