P is for Practical | |
PerlMonks |
Re^5: Problem with regex wildcard operator (.)...?by AnomalousMonk (Archbishop) |
on Sep 06, 2021 at 07:19 UTC ( [id://11136496]=note: print w/replies, xml ) | Need Help?? |
I am not sure why your code seems to work. It works because \[ is just an escaped [, so tr/\[A-Z]/[a-z]/ is translating [ to [, ] to ], and uppercase to lowercase. Any other character, e.g., \, is unaffected. Give a man a fish: <%-{-{-{-<
In Section
Seekers of Perl Wisdom
|
|