libio-file-withfilename-perl

filehandles that know their origin

Description

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') };

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Homepage

https://metacpan.org/release/IO-File-WithFilename


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install libio-file-withfilename-perl