Name : perl-File-Find-Closures
| |
Version : 1.116
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp154.1.1
| Date : 2024-01-11 06:31:00
|
Group : Unspecified
| Source RPM : perl-File-Find-Closures-1.116-lp154.1.1.src.rpm
|
Size : 0.02 MB
| |
Packager : https://www_suse_com/
| |
Summary : Functions you can use with File::Find
|
Description :
I wrote this module as an example of both using closures and using File::Find. Students are always asking me what closures are good for, and here\'s some examples. The functions mostly stand alone (i.e. they don\'t need the rest of the module), so rather than creating a dependency in your code, just lift the parts you want).
When I use File::Find, I have two headaches—coming up with the \'\\&wanted function\' to pass to \'find()\', and acculumating the files.
This module provides the \'\\&wanted\' functions as a closures that I can pass directly to \'find()\'. Actually, for each pre-made closure, I provide a closure to access the list of files too, so I don\'t have to create a new array to hold the results.
The filenames are the full path to the file as reported by File::Find.
Unless otherwise noted, the reporter closure returns a list of the filenames in list context and an anonymous array that is a copy (not a reference) of the original list. The filenames have been normalized by \'File::Spec::canonfile\' unless otherwise noted. The list of files has been processed by \'File::Spec::no_upwards\' so that \".\" and \"..\" (or their equivalents) do not show up in the list.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-F/15.4/noarch |