Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Start on qw
  • Loading branch information
Mouq committed Apr 21, 2014
1 parent 3c78deb commit 1c6b3b0
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions lib/terms.pod
Expand Up @@ -111,7 +111,7 @@ shortcut C<「…」>, or via C<Q> followed by any pair of delimiters
surrounding your text. Most of the time, though, the least you'll need
is C<'…'> or C<"…">, described in more detail in the next sections.
=head Literal strings: Q
=head3 Literal strings: Q
Q[A literal string]
「More plainly.」
Expand All @@ -126,29 +126,34 @@ possible.
The other quote forms add on to this basic functionality:
=head3 Escaping: :q
=head3 Escaping: q
'Very plain'
q[This back\slash stays]
q[This back\\slash stays] # Identical output
Q :q $ There're no backslashes here, only lots of \$\$\$! $
'(Just kidding. There\'s no money in that string)'
'(Just kidding. There\'s no money in that string)'
'No $interpolation {here}!'
The C<:q> form allows for escaping characters that would otherwise end
the string using a backslash. The backslash itself can be escaped, too,
as in the third example above. The usual form is C<'…'> or C<q> followed
by a delimiter, but it's also available as an adverb on C<Q>, as in the
fourth example above.
=head3 Interpolation: :qq
=head3 Interpolation: qq
TODO
=head3 Word quoting: :qw
=head3 Word quoting: qw
TODO
<a b c> eqv ('a', 'b', 'c')
qw|! @ # $ % ^ & * \| < > | eqv '! @ # $ % ^ & | < >'.words
Q:w { [ ] \{ \} } eqv ('[', ']', '{', '}')
The C<:w> form, usually written C«<…>» or C<qw>
=head3 Shell quoting: :qqw
=head3 Shell quoting: qqw
TODO
Expand Down

0 comments on commit 1c6b3b0

Please sign in to comment.