On 9/14/11 Wed Sep 14, 2011 5:04 AM, "William" <lilijr...@gmail.com> scribbled:
> On Sep 14, 5:39 am, chrisstinem...@gmail.com (Chris Stinemetz) wrote: >>>> ...For more information see: >> >>> #!/usr/local/bin/perl >>> use strict; >>> $a = 1; >>> $b = 2; >>> print qq($a, $b\n); >> > > Hi Chris: > what's the function of qq :p I am not Chris, but I can answer your question. 'qq' is a quote-operator that interprets its argument in a double-quote context, interpolating the values of variables and escape sequences and returning a scalar value. Thus, qq($a, $b\n) is equivalent to "$a, $b\n". qq() is often used to improve readability. One advantage is that embedded double-quote characters do not need to be escaped. For example, qq(") is equivalent to "\"", but more readable. See 'perldoc perlop' and search for 'Quote and Quote-like Operators'. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/