| 1 | Source: libio-file-withfilename-perl |
| 2 | Maintainer: Debian Perl Group <[email protected]> |
| 3 | Uploaders: Mason James <[email protected]> |
| 4 | Section: perl |
| 5 | Testsuite: autopkgtest-pkg-perl |
| 6 | Priority: optional |
| 7 | Build-Depends: debhelper-compat (= 13) |
| 8 | Build-Depends-Indep: perl |
| 9 | Standards-Version: 4.6.2 |
| 10 | Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libio-file-withfilename-perl |
| 11 | Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libio-file-withfilename-perl.git |
| 12 | Homepage: https://metacpan.org/release/IO-File-WithFilename |
| 13 | Rules-Requires-Root: no |
| 14 | |
| 15 | Package: libio-file-withfilename-perl |
| 16 | Architecture: all |
| 17 | Depends: ${misc:Depends}, |
| 18 | ${perl:Depends} |
| 19 | Description: filehandles that know their origin |
| 20 | IO::File::WithFilename does everything that IO::File does, but implements |
| 21 | filename method, that File::Temp objects have. It lets you write the code |
| 22 | that is ignorant of what classes of objects it works with. |
| 23 | . |
| 24 | If you want to check if it is safe to call filename method, you are |
| 25 | recommended to call can method rather than to check an object's inheritance: |
| 26 | . |
| 27 | print $obj->filename, "\n" if eval { $obj->can('filename') }; |