Double-quote

From Jonathan Gardner's Tech Wiki
Jump to: navigation, search

Introduction

What double-quotes are used for in different languages.

Comparison of Languages

Language Example Meaning
Perl
"a $word"
qq[a word]
<<DOC
A here doc
DOC
A string with substitution of variables.
Python "a word" A literal string.
Java "A word" A literal string

Escape Sequences

See string escape sequences.