![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: Special character not being capturedby Lady_Aleena (Curate) |
on Jun 20, 2019 at 18:15 UTC ( #11101635=note: print w/replies, xml ) | Need Help?? |
choroba, It confuses me why when I use make_hash, it returns the correct strings as keys and values without having to specify an encoding; but when I go to get the first character with either the first_alpha subroutine or substr, I suddenly need to specify the encoding. All of these subroutines are in the same module where encoding is not specified anywhere. Some subroutines return the correct strings without having to specify encoding while others do not is confusing. If this helps, I am including my locale.
As an aside, I rewrote first_alpha. The original horrified me. I hope the rewrite is cleaner.
No matter how hysterical I get, my problems are not time sensitive. So, relax, have a cookie, and a very nice day!
Lady Aleena
In Section
Seekers of Perl Wisdom
|
|