lc EXPR lc |
返回EXPR一個小寫版本,或如果EXPR被忽略則為$_。
EXPR的小寫版本
試試下麵的例子,複製和過去的這個例子test.pl文件,然後對結果進行驗證:
#!/usr/bin/perl
$orig_string = "This is Test and CAPITAL";
$changed_string = lc( $orig_string );
print "Changes String is : $changed_string\n";
It will produce following result
#by www.gitbook.net
Changes String is : this is test and capital