|
|
Tutorials

Perl

|
Topic |
What is uc Function in Perl?
|
|
Explanation |
|
The uc function is used to convert a string into upper case.
Syntax:
uc EXPR
uc
In the above syntax, uc() function takes a "string" as the argument.
Example:
#! C:\programfiles\perl\bin\perl
print "content-type: text/html\n\n";
$string = "howareyou";
$string2 = uc($string);
print "Upper case string: $string2\n";
Result:
Upper case string: HOWAREYOU
In the above uc Function example the string "howareyou" is converted to upper case "HOWAREYOU".
|
|
A Note |
|
Simple introduction, basic CGI perl programming codes with examples.
Do send your feedback or suggestions on this tutorial.
This is a copyright content.
|
|
|
|