tag:blogger.com,1999:blog-3861200916183859809.post1716902882562480037..comments2018-04-16T12:09:54.580+05:30Comments on Perl Quiz: Quiz 68: Convert to uppercase and lowercasesaurabh2k26http://www.blogger.com/profile/00524123124401905843noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-3861200916183859809.post-4895727271099895542015-03-02T12:05:12.425+05:302015-03-02T12:05:12.425+05:30One part of this quiz may help programmer on how t...One part of this quiz may help programmer on how to calculate number of uppercase or lowercase characters occurring in a string. Other part, teaches them how to convert a string to uppercase/lowercase.saurabh2k26https://www.blogger.com/profile/00524123124401905843noreply@blogger.comtag:blogger.com,1999:blog-3861200916183859809.post-59348741266234361302015-03-02T12:01:14.378+05:302015-03-02T12:01:14.378+05:30Oh ok I just check input string and output string....Oh ok I just check input string and output string.<br />Well, try to put real case scenario questions where you really use in your IT life.<br />Asking these questions doesn't make sense to a real programmers :)Alien Codershttps://www.blogger.com/profile/07437929670690745122noreply@blogger.comtag:blogger.com,1999:blog-3861200916183859809.post-27053655316120755432015-03-02T11:38:11.126+05:302015-03-02T11:38:11.126+05:30Hi Alien
We dont require to convert to lc everytim...Hi Alien<br />We dont require to convert to lc everytime according to problem statement. We may need to convert to uc also sometimes.saurabh2k26https://www.blogger.com/profile/00524123124401905843noreply@blogger.comtag:blogger.com,1999:blog-3861200916183859809.post-87929367694748299832015-03-02T11:34:33.416+05:302015-03-02T11:34:33.416+05:30How about: perl -e 'print lc('elePhAnTS&#...How about: perl -e 'print lc('elePhAnTS')'<br /><br />or chomp(my $str=);<br />print lc($str);<br /><br />For better and tricky question look at this quiz on use of map in real scenario.<br />http://www.aliencoders.org/forum/Thread-how-to-use-map-function-in-perlAlien Codershttps://www.blogger.com/profile/07437929670690745122noreply@blogger.com