line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Acme::MarkdownTest; |
2
|
|
|
|
|
|
|
$Acme::MarkdownTest::VERSION = '0.01'; |
3
|
|
|
|
|
|
|
# We need the following ABSTRACT line, as dzil can't find the abstract |
4
|
|
|
|
|
|
|
# from the markdown |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
# ABSTRACT: test module to see how markdown is handled |
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
808
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
34
|
|
9
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
34
|
|
10
|
1
|
|
|
1
|
|
26
|
use 5.006; |
|
1
|
|
|
|
|
4
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=format markdown |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
# NAME |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
Acme::MarkdownTest - test module to see how markdown is handled |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
# SYNOPSIS |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
use Acme::MarkdownTest; |
21
|
|
|
|
|
|
|
... |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
# DESCRIPTION |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
This is an empty module that I'm using to see how well |
26
|
|
|
|
|
|
|
[markdown](https://daringfireball.net/projects/markdown/syntax) |
27
|
|
|
|
|
|
|
is supported for writing module documentation. |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
In this documentation I've tried to use most of the standard markdown |
30
|
|
|
|
|
|
|
elements, to see how they come out in perldoc, metacpan, and elsewhere. |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
> This is a blockquote |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
Then we have _italic_ and **bold** formatting. |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
Let's have a bulleted list: |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
* first bullet |
39
|
|
|
|
|
|
|
* second bullet |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
And then a numbered list: |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
1. first item |
44
|
|
|
|
|
|
|
2. second item |
45
|
|
|
|
|
|
|
3. third item |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
And then a code sample: |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
# This is a comment |
50
|
|
|
|
|
|
|
if ($answer > 41 && $answer < 43) { |
51
|
|
|
|
|
|
|
print "hooray!\n"; |
52
|
|
|
|
|
|
|
} |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
And an inline `code()` example. |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
The next line should produce a horizontal rule: |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
--- |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
# AUTHOR |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
Neil Bowers |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
# COPYRIGHT AND LICENSE |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
This software is copyright (c) 2021 by Neil Bowers. |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
71
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=cut |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
1; |
76
|
|
|
|
|
|
|
|