Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

qq** What does it mean?

Status
Not open for further replies.

robdunfey

Technical User
Apr 26, 2002
110
GB
Hi,

What does qq* do?

For example,

my $usage = qq*
Usage: $0 [filename] [poly|line|point] [id] > outfile.svg
*;

$ARGV[2] or die "Error: No layout type specified\nTypes available: id\n$usage\n";

I dont understand how this works, could somebody help me?

Thanks,

Rob
 
The qq operator is the generlized double-quote operator. Basically it is like using a double qouted string since it will do variable interpolation, but it also handles character escaping for you.

In your case the * is the pattern delimiter. You chould change the code to be a little more readable by doing something like:

my $usage = qq{
Usage: $0 [filename] [poly|line|point] [id] > outfile.svg
};

Hope that helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top