Because Perl was designed as a glue language, its easy to use it to call. Also of interest is its âSee Alsoâ section, which contains links to other implementations, and a comparison of them. If you just blindly call the system function or backticks on a single string. Path-Iterator-Rule provides an object oriented and iterative file finder, and there's also Path-Class-Rule and IO-All-Rule. Some better alternatives are:įile-Find-Object - an object-oriented replacement for File::Find that: 1) can be instantiated 2) has an iterative interface 3) can be interrupted in the middle and 4) can return result objects instead of path names.įile-Next - an alternative with an iterative interface, but incapable of being instantiated.įile-Find-Rule, which is still based on File::Find, and File-Find-Object-Rule provide a more convenient and succinct interface for finding what you want. The built-in module for traversing a directory tree in Perl is File::Find, but it has some severe limitations in interface and use.
0 Comments
Leave a Reply. |