q(STRING) Function in Perl
What is q(STRING) Function in Perl?
The q(STRING) function is used instead of using a single quotes.
In the above syntax, the function takes a "string" as the argument.
print "content-type: text/htmlnn";
print(q(Hiox India $var));
Hiox India $var
In the above example the string "Hiox India $var" is printed, since "q/string/" is like using the single quotes variable substitution is not done, so "$var" is printed as a string and not its value "10".