1. Perl
  2. Operators
  3. here

q - Quart operator

The quote operator "q" can be used to express the same meaning as a string enclosed in single quotes. Single quotes can be used without escaping.

my $message = q (We'll go to Japan);

You can also use the following expressions instead of q ().

q ()
q {}
# q #
q []
q !!

There is also double quote operator that can represent double quotes.

Related Informatrion