1999-03-18から1日間の記事一覧

大文字・小文字の変換

明解C言語 入門編 > 9. 文字列の基本 > 大文字・小文字の変換 Perl $str = "BohYoh"; $str = uc($str); print "大文字:$str\n"; $str = lc($str); print "小文字:$str\n"; 実行結果 L:\>perl lesson_09_076.pl 大文字:BOHYOH 小文字:bohyoh