Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^5: Formatting Regex for File::Find::Rule

by haukex (Archbishop)
on Apr 09, 2021 at 17:32 UTC ( [id://11131066]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Formatting Regex for File::Find::Rule
in thread Formatting Regex for File::Find::Rule

Thanks for putting up with me. I knew it was something stupid on my part.

No worries, glad to help! The File::Find::Rule docs aren't 100% clear on that ->name matches the basename only, but I got my insights from peeking at the code - it's basically just compiling to a File::Find routine, which you can see with the private method print $rule->_compile;, and there one can see it's matching against $_, and in File::Find by default that's just the basename of the file, without the directory.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11131066]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-25 22:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found