Get the App
SLTechnology News&Howtos  ›  Development  › 

What about the perl case transformation functions lc () and uc ()

Shulou Source: shulou.com Published: 2022-06-01 12:38:20 10月02日 Update

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!

Tags: Functions letters sizes transformations what to do variables uppercase uppercase lowercase articles two done more knowledge results industry information information channels channels Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Huawei Redmi Docker Shulou Tech Info