Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
TeamSite
TeamSite, LiveSite and OpenDeploy
Perl Find Question
System
All of my perl does use strict. I have lots of scripts that need to find assets in a filesystem using various conditions - find all files, find all files containing some text, find all files with filenames matching some string, find all directories, find all files and directories, etc. I use File::Find::find for this but I would like to move the wanted function into a module with some more generic logic (pass a regex, etc.). But with strict on I don't know how to pass the array, regex, etc. to the find wanted subroutine in the module - the Perl compiler throws warnings about undeclared variables and won't let me install the module.
I hope this makes sense but I can clarify if needed. Hopefully someone has already resolved a similar problem.
Find more posts tagged with
Comments
There are no comments yet