954,523 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Newb: difference between qq{}[ and q{}

What is the difference between qq{} and q{} ?

I am learning some basic perl for class, and I noticed that qq{Element contents: $_} q{Element contents: $_} produce different results in a loop... I thought "q{}" was like quoted or something.. What is it really? And what is qq{}?

FALL3N
Junior Poster in Training
84 posts since May 2010
Reputation Points: 10
Solved Threads: 2
 

[ qq ]
http://www.misc-perl-info.com/perl-qq.html

You can use q if you are not doing any variable substitution in a string.

thines01
Postaholic
Team Colleague
2,424 posts since Oct 2009
Reputation Points: 445
Solved Threads: 402
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: