qq(string) Function in Perl
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:programfilesperlbinperl
print "content-type: text/htmlnn";
$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 value "10" of the variable "$var" is substituted.