NAME

Perl::Examples::POD::Escape - Show the various examples of escaping

VERSION

This document describes version 0.095 of Perl::Examples::POD::Escape (from Perl distribution Perl-Examples), released on 2020-03-07.

DESCRIPTION

To make the whole paragraph as verbatim, thus avoiding any interior sequences from being interpreted, you indent the paragraph with at least one whitespace, example:

 This is a verbatim paragraph. Interior sequences like I<italic> and B<bold>
 will not be interpreted but shown as is.

They are akin to <PRE> in HTML.

To escape a character, use the E<> interior sequence, which is similar to &foo; entities in HTML. For example: E<gt> (will be rendered as >), E<lt> (will be rendered as <). See perlpod for the full list.

To make an inline text as verbatim, you use the C<> interior sequence, for example: C<literal> (will be rendered as literal), C<&gt;> (will be rendered as &gt;). This is similar to <CODE> in HTML.

Interior sequence can be written with a single angle bracket pair (C<foo>, C<foo>) or double angle bracket + whitespace (C<< foo >>, B<< foo >>). The latter is useful if you have literal < and > inside the sequence, e.g. C<< <TAG> >> (will be rendered as <TAG>).

The interior sequence can contain one another, so another way to write verbatim:

 <foo>

aside from:

 C<< <foo> >>

is:

 C<E<lt>fooE<gt>>

Another example:

 I<E<lt>italicE<gt>>

(will be rendered as <italic>).

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/Perl-Examples.

SOURCE

Source repository is at https://github.com/perlancar/perl-Perl-Examples.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Perl-Examples

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2020, 2018, 2016, 2015 by perlancar@cpan.org.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.