Tutorials Point


  Perl Home

  PERL Functions

© 2011 TutorialsPoint.COM


  Home     References     About TP     Advertising  

PERL qq() Function



Syntax

qq ( string )


Definition and Usage

qq() can be used instead of double quotes. This is not really a function, more like an operator, but you'll probably look here if you see it in another programmer's program without remembering what it is. You can actually use any set of delimiters, not just the parentheses.

Return Value

  • A double-quoted string.

Example

Try out following example:

#!/usr/bin/perl -w

$var = 10;
print(qq(This is a single quoted string with interpolation, $var));

It will produce following results:

This is a single quoted string with interpolation, 10


Printer Friendly



  

Advertisement

Online Image Processing

Indian Baby Names