Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Perl] Capitilization
07-09-2010, 10:35 AM
Post: #1
[Perl] Capitilization
Code:
#!/usr/bin/perl
#Capitilize.pl
#======================
#      Notes          |
#\U - All capital     |
#\u - First Letter cap|
#\L - All Lowercase   |
#======================
$Var = "http://www.pro9ramming.com";
print "Original \$Var: $Var\n";
print "All Caps: \U$Var\n";
print "First Letter Capitilized: \u$Var\n";

"Character is determined more by the lack of certain experiences than by those one has had."
Friedrich Nietzsche
Visit this user's website Find all posts by this user
Quote this message in a reply
07-09-2010, 10:19 PM
Post: #2
RE: [Perl] Capitilization
Very interesting and easy !

There's a fine line between genius and insanity. I have erased this line.
Oscar Levant
There's a fine line between an administrator and black hat hacker. I have erased this line.
Dr DEBCOL
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


 Quick Theme: