line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Perl6::Pod::FormattingCode::M; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=pod |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
=head1 NAME |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
Perl6::Pod::FormattingCode::M - class of M code |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=head1 SYNOPSIS |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=begin pod |
12
|
|
|
|
|
|
|
=use CustomCode TT<> |
13
|
|
|
|
|
|
|
sds M |
14
|
|
|
|
|
|
|
=end pod |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=head1 DESCRIPTION |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
Perldoc modules can define their own formatting codes, using the M<> code. An M<> code must start with a colon-terminated scheme specifier. The rest of the enclosed text is treated as the (verbatim) contents of the formatting code. For example: |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=use Perldoc::TT TT<> |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head1 Overview of the M class |
24
|
|
|
|
|
|
|
(version M) |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
M |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
The M<> formatting code is the inline equivalent of a named block. |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=cut |
31
|
|
|
|
|
|
|
|
32
|
3
|
|
|
3
|
|
15
|
use warnings; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
87
|
|
33
|
3
|
|
|
3
|
|
14
|
use strict; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
86
|
|
34
|
3
|
|
|
3
|
|
15
|
use Perl6::Pod::FormattingCode; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
68
|
|
35
|
3
|
|
|
3
|
|
14
|
use base 'Perl6::Pod::FormattingCode'; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
237
|
|
36
|
|
|
|
|
|
|
our $VERSION = '0.01'; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
1; |
39
|
|
|
|
|
|
|
__END__ |