|
|
qq(string) Function in Perl
|
Tutorials

Perl

|
Topic |
What is qq(string) Function in Perl?
|
|
Explanation |
|
This function is used instead of using a double quotes.
Syntax:
qq(string)
In the above syntax, qq(string) function takes a "string" as the argument.
Example:
#! C:\programfiles\perl\bin\perl
print "content-type: text/html\n\n";
$var = 10;
print(qq(Hioxindia, $var));
Result:
Hioxindia,10
In the above example the string "Hioxindia,10" is printed as if it's within double quotes,that's why the the value
"10" of the variable "$var" is substituted.
|
|
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.
|
|
|
|