What about the perl case transformation functions lc () and uc ()
Xiaobian to share with you perl case conversion function lc() and uc() how to do, I hope you have something to gain after reading this article, let's discuss it together!
perl case conversion functions lc() and uc()
Perl contains two built-in functions that convert lowercase letters directly to uppercase letters
The lc() function converts variables to lowercase letters
The uc() function converts variables to capital letters
For example:
my $string = "I LOVE YOU";my $lstring = lc($string);my $ustring = uc($lstring);print $lstring. "\n";print $ustring. "\n";
The results are:
i love youI LOVE YOU After reading this article, I believe you have a certain understanding of "perl case conversion function lc() and uc()". If you want to know more about it, welcome to pay attention to the industry information channel. Thank you for reading!