2020年11月17日 22:54
... Some Modules code
1;
__END__
=encoding utf8
=head1 NAME
Dummy::Module - Common Pod documentation on CPAN
=head1 SYNOPSIS
use Dummy::Moduls;
my $val = Dummy::Module->some_method('arg1', 'arg2');
my $obj = Dummy::Module->new;
my $val = $obj->some_method('arg1', 'arg2');
=head1 DESCRIPTION
This module is a dummy for explaining the Pod.
=head1 METHODS
=over 2
=item * new
How to use the method new().
my $obj = Dummy::Module->new;
=item * some_method
How to use the method some_method().
my $val = Dummy::Module->some_method('arg1', 'arg2');
or
my $obj = Dummy::Module->new;
my $val = $obj->some_method('arg1', 'arg2');
=back
=head1 Ohter Items
=over
=item 1. other item(1)
=item 2. other item(2)
=item 3. other item(3)
=back
=head1 SEE ALSO
Information that the user should refer to.
L<ohter::module1>, L<other::module2>
=head1 AUTHOR
The author of this module.
Who Am I C<< <authors@address> >>
=head1 COPYRIGHTorLICENSE
Present the copyright and/or license.
=cut
$ pod2text pod_file
NAME
Dummy::Module - Common Pod documentation on CPAN
SYNOPSIS
use Dummy::Moduls;
my $val = Dummy::Module->some_method('arg1', 'arg2');
my $obj = Dummy::Module->new;
my $val = $obj->some_method('arg1', 'arg2');
DESCRIPTION
This module is a dummy for explaining the Pod.
METHODS
* new
How to use the method new().
my $obj = Dummy::Module->new;
* some_method
How to use the method some_method().
my $val = Dummy::Module->some_method('arg1', 'arg2');
or
my $obj = Dummy::Module->new;
my $val = $obj->some_method('arg1', 'arg2');
Ohter Items
1. other item(1)
2. other item(2)
3. other item(3)
SEE ALSO
Information that the user should refer to.
ohter::module1, other::module2
AUTHOR
The author of this module.
Who Am I "<authors@address>"
COPYRIGHTorLICENSE
Present the copyright and/or license.
$ pod2man pod_file | nroff -man
Pod_FILE(1) User Contributed Perl Documentation Pod_FILE(1)
NAME
Dummy::Module - Common Pod documentation on CPAN
SYNOPSIS
use Dummy::Moduls;
my $val = Dummy::Module->some_method('arg1', 'arg2');
my $obj = Dummy::Module->new;
my $val = $obj->some_method('arg1', 'arg2');
DESCRIPTION
This module is a dummy for explaining the Pod.
METHODS
· new
How to use the method new().
my $obj = Dummy::Module->new;
· some_method
How to use the method some_method().
my $val = Dummy::Module->some_method('arg1', 'arg2');
or
my $obj = Dummy::Module->new;
my $val = $obj->some_method('arg1', 'arg2');
Ohter Items
1. other item(1)
2. other item(2)
3. other item(3)
SEE ALSO
Information that the user should refer to.
ohter::module1, other::module2
AUTHOR
The author of this module.
Who Am I "<authors@address>"
COPYRIGHTorLICENSE
Present the copyright and/or license.
perl v5.28.1 2020-10-14 Pod_FILE(1)
$ perldoc pod_file
$ perldoc -D pod_file
$ PERLDOCDEBUG=5 perldoc pod_file
=encoding utf-8
=head1
=head2
=head3
=head4
=head1 Formatting code
=head2 Object Atrributes
=head3 Possible Values for C<$/>
=head4 What B<Not> to Do!
<h1 id="Formatting-code">Formatting code</h1>
<h2 id="Object-Atrributes">Object Atrributes</h2>
<h3 id="Possible-Values-for">Possible Values for <code>$/</code></h3>
<h4 id="What-Not-to-Do">What <b>Not</b> to Do!</h4>
=head1 NAME
Dummy::Module - Common Pod documentation on CPAN
=head1 DESCRIPTION
This module is a dummy for explaining the Pod.
=head1 Formatting code in the ordinary paragraph
This I<paragraph> is B<ordinay> and uses a formatting code.
=head1 METHODS
=over 2
=item * new
How to use the method new().
my $obj = Dummy::Module->new;
=item * some_method
How to use the method some_method().
my $val = Dummy::Module->some_method('arg1', 'arg2');
or
my $obj = Dummy::Module->new;
my $val = $obj->some_method('arg1', 'arg2');
=back
=over
=item 1. C<< $thing->stuff(I<dodad>) >>
=item 2. Using C<$|> to Control Buffering
=back
=item * new
How to use the method new().
my $obj = Dummy::Module->new;
=pod
This is the Pod
=cut
$ pod2man podfile | nroff -man
PodFILE(1) User Contributed Perl Documentation PodFILE(1)
This is the the Pod ?
perl v5.28.1 2020-10-15 PodFILE(1)
$ perldoc podfile
No documentation found for "podfile".
=head1 the Pod
This is the Pod
=cut
Perl モジュールとスクリプトに Pod ドキュメントを埋め込むことができます。 ドキュメントを空行および“=head1”コマンドで始め、“=cut”と空行で終えます。
"=pod" コマンドはそれ自身ではほとんど何もしませんが、 Perl (と Pod フォーマッタ)に Pod ブロックがここから始まることを示します。