Perl: the Markov chain saw | |
PerlMonks |
Re^3: Formatting Regex for File::Find::Ruleby haukex (Archbishop) |
on Apr 09, 2021 at 15:49 UTC ( [id://11131061]=note: print w/replies, xml ) | Need Help?? |
'*.*' does continue and returns files as expected '*.*' is being expanded to a regular expression by File::Find::Rule (more specifically, by glob_to_regex from Text::Glob): m{(?^:^(?=[^\.])(?:(?!\/).)*\.(?:(?!\/).)*$)} Do you have any ideas as to why I can't get qr// to work inside name()? ->name( qr/LOG|cache|AVCHD/ ) works for me the same as my array suggestion above - like I said it won't work if you keep the slashes in.
In Section
Seekers of Perl Wisdom
|
|