Name

varname — The name of a variable

Synopsis

varname ::= (text | phrase db._phrase | replaceable | Graphic inlines | Indexing inlines | Linking inlines | Ubiquitous inlines)*

Description

A varname identifies a variable name in a programming or expression language. Variables most often get their values from literals, replaceable values, constants, or symbols.

Processing expectations

Formatted inline.

See Also

command, computeroutput, constant, literal, markup, option, optional, parameter, prompt, replaceable, tag, userinput

Examples

<article xmlns='http://docbook.org/ns/docbook'>
<title>Example varname</title>

<para>In Perl, <varname>@ARGV</varname> contains the command-line parameters
used when the script was run.
</para>

</article>

Get DocBook 5: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.