[첫화면으로]Perl/POD

마지막으로 [b]

18 번째 수정본
(18 번째 수정본부터 18 번째 수정본까지의 변경사항) (소소한 수정, 다른 사용자에 의한 수정)

-297,158 +297,4
    C<< $foo->bar(); >>
위의 형태가 아래 형태보다 읽기 좋다
    C<open(X, "E<gt>E<gt>thing.dat") || die $!>
    C<$foo-E<gt>bar();>
}}}
=== # The Intent ===
* Pod 포맷은 표현력보다는 사용하기 쉬운 쪽에 초첨이 맞춰져 있다
* pod2text, pod2html, pod2man, pod2latex, pod2fm, 그리고 CPAN 에 있는 그외의 번역기 등을 사용하여 HTML, TeX 등의 다른 형태로 쉽게 바꿀 수 있다.
* 책을 작성하는 데 쓰기에는 부적절하다. :-)
=== # Embedding Pods in Perl Modules ===
* 펄 모듈이나 스크립트에 Pod 문서를 내장할 때,
** 빈 줄, "=head1" 명령 으로 문서를 시작하고 "=cut" 명령, 빈 줄 순서로 문서를 끝냄
* Pod 문서를 파일의 마지막 부분에 작성하고, 이 파일에 __END__나 __DATA__ 마크가 있을 경우 첫번째 Pod 명령 앞에 빈 줄이 반드시 있어야 한다.
{{{#!vim perl
__END__
=head1 NAME
Time::Local - efficiently compute time from local and GMT time
}}}
=== # Hints for Writing Pod ===
* podchecker 프로그램으로 Pod 문서의 문법 에러나 경고를 점검할 수 있다.
* 여러 종류의 번역기에 문서를 통과시켜서 제대로 번역이 되는지 확인하라.
* Pod보다 HTML 문서를 작성하는 게 더 편하다면, CPAN:Pod::HTML2Pod 모듈로 역변환을 할 수도 있다.
* 구식의 번역기들은 모든 Pod 명령의 앞뒤로 빈줄이 있어야 제대로 해석한다. ("=cut"도!)
* 어떤 구식 번역기들은 단락의 앞뒤로 ''완전히 빈'' 줄로 구분되어 있어야 제대로 해석한다. (즉 공백 문자조차도 없어야 함)
* 구식 번역기 중에는 L<> 링크 주위에 단어를 추가하는 경우가 있다. 예를 들어 <code>L<Foo::Bar></code>는 "the Foo::Bar manpage"로 표시될 수 있다. 따라서 "<code>the L<foo> documentation</code>"와 같이 작성할 경우 말이 안 되게 번역될 수 있다. 따라서 이런 경우 "<code>the L<Foo::Bar|Foo::Bar> documentation</code>" 또는 "<code>L<the Foo::Bar documentation|Foo::Bar></code>"와 같이 링크가 어떻게 표시될지도 지정하라.
* verbatim 블록 내에서 70컬럼을 넘어가게 작성할 경우 어떤 포매터에서는 이상하게 줄바꿈이 되어 버릴 수 있다.
=== # 참고 ===
* Perldoc:perldocspec
* [http://perldoc.perl.org/perlsyn.html#PODs%3a-Embedded-Documentation "PODs: Embedded Documentation" in perlsyn]
* Perldoc:perlnewmod
* Perldoc:perldoc
* Perldoc:pod2html
* Perldoc:pod2man
* [http://perldoc.perl.org/podchecker.html podchecker]
== # 한글 ==
윈도우 명령프롬프트에서 출력할 경우:
* 아래의 내용은 Strawberry perl 5.10.0 에서 테스트
* [[/Pod-Usage]]를 사용하여 스크립트 내에서 <code>pod2usage()</code>를 사용하여 출력할 때는 다음과 같이 하면 잘 나온다.
** 스크립트를 UTF-8로 인코딩할 경우에는 <code>=encoding utf8</code>로, EUC-KR로 인코딩할 경우에는 <code>=encoding euc-kr</code> 로 명시해주고
** <code>binmode(STDOUT, ":encoding(euc-kr)")</code> 로 지정해 주어야 함
* <code>perldoc 스크립트이름</code>을 사용해 출력할 경우 - 깨져서 나온다
** UTF-8 로 인코딩한 경우에 깨져서 나옴
** EUC-KR 로 인코딩한 경우에는, <code>=encoding euc-kr</code>이 적혀 있으면 깨져 나오고, 이 줄을 삭제할 경우 한글이 나오긴 하는데 이때도 일부는 깨져 나옴
== # 기타 & Comments ==
<div class="comments">
Truth About Triactol Does Triactol Work Yahoo Triactol Price In India \\
 \\
http://www.mellencamp.com/forum/index.php?topic=957.0;prev_next=prev \\
http://www.makaticity.com/messages/message_board/post_message.php?parent_message_id=197974&message_board_category_id=1 \\
http://www.cruffler.com/discus/messages/43/331.html?1073060793 \\
http://admin.freeblog.hu/messages/blog/comments/archives/2006/08/11/Ehes_vagyok_de_nem_eszek_macskat/ \\
http://www.energie2007.fr/forums/viewtopic.php?t=2716 \\
http://www.upweek.ru/forum/viewtopic.php?f=3&t=33240 \\
http://www.advisors.iao.fhg.de/discus/messages/1/1.html?TuesdayMarch520021200pm \\
http://superdog.4bb.ru/viewtopic.php?id=35 \\
http://www.gowon.cn/bbs/viewthread.php?tid=2264%2B%255BPLM=0%255D%2BGET%2Bhttp://www.gowon.cn/bbs/viewthread.php?tid=2264%2B%255B0,97515,99128%255D%2B-%253E%2B%255BN%255D%2BPOST%2Bhttp://www.gowon.cn/bbs//post.php?action=reply&fid=107&tid=2264&extra=&replysubmit=yes%2B%255B0,0,12069%255D \\
http://meangirlssworld.forumbb.ru/viewtopic.php?id=8 \\
http://www.ecoleclassique.com/wwwboard/messages/8930.htm \\
http://www.ffs.net/foren-hosting/gdhm/wwwforum/messages/803.htm \\
http://www.phasure.com/index.php?topic=1651.0;prev_next=prev \\
http://ecfac.ru/forum/index.php?topic=34.0;prev_next=prev \\
http://narutofuture.9bb.ru/viewtopic.php?id=360 \\
http://info-realty.ru/forum/forum4/topic2258/messages/forum/ \\
http://www.schlafumgebung.de/forum/messages/5544.html \\
http://www.goulmima4.com/vb/showthread.php?t=3730 \\
http://genussforum.com/cgi1/messages/cgi1/messages/cgi1/index.html \\
http://www.tamdee.net/main//read.php?tid-1744.html \\
http://www.time4fish.net/board/index.php?topic=11425.0 \\
http://www.hotbloodedgaming.com/forum/showthread.php?p=240715 \\
http://www.automag.be/forum/viewtopic.php?f=10&t=6119 \\
http://www.angielski-online.pl/literatura/92-emily-dickinson/forum/viewtopic.php?f=8&t=472 \\
http://www.bms-ts.de/wwwboard/messages/12382.html \\
http://timesofmaroders.4bb.ru/viewtopic.php?id=25 \\
http://www.psionic3d.co.uk/forums/showthread.php?11-Swamp-Thing... \\
http://www.echo-n.ru/f/viewtopic.php?f=17&t=147 \\
http://october.perm.ru/forum/showthread.php?fid=1&tid=0 \\
http://www.medlz.de/forum/messages/3471.html \\
http://www.inquiceweb.com/IWboard/messages/board-topics.html \\
http://www.schlesierland.de/forum/messages/7905.html \\
http://inout.pp.ua/showthread.php?t=200 \\
http://g6s6.debthai.net/home/forum/viewthread.php?forum_id=2&thread_id=142&rowstart=160 \\
http://goldensnitch.rolevaya.ru/viewtopic.php?id=1 \\
 \\
http://www.winline.ru/forum/forum7/topic1959/messages/auth/?backurl=%2Fforum%2Fforum7%2Ftopic1959%2Fmessages%2F \\
http://www.collegeforums.ca/forum/index.php?topic=4.0 \\
http://grog.ca/forum/viewtopic.php?p=9656 \\
http://old.mijsvit.ua/index.php?option=com_smf&Itemid=128&a=http://old.mijsvit.ua/forum/index.php?topic=131.0 \\
http://www.virtual-tuned.phorum.cz/viewtopic.php?f=27&t=61 \\
http://www.levhair.org.il/Forum/Messages/AddResponse.asp?ItemID=243&CategoryID=487&Page=1 \\
http://alchemy.fobb.ru/viewtopic.php?id=2 \\
http://arzgulhightschool.rolka.su/viewtopic.php?id=515 \\
http://www.heppell.ca/messages/Messages.asp \\
http://hoptoit.com/discuss/messages/1/1.html \\
http://twilightimagination.rolka.su/viewtopic.php?id=403 \\
http://www.goathiphop.com/forum/viewtopic.php?f=7&t=26 \\
http://www.arcto.ru/FORUMS/messages/45/cgi/2/board-newmessages.cgi?method=last&number=1&units=1440&where=all \\
http://www.ftsldrs.com/forum/showthread.php?7-All-the-latest-music \\
http://progtuts.info/forum/viewtopic.php?id=4 \\
http://www.bbvforums.org/forums/messages/1954/71572.html \\
http://www.roguetemple.com/forums/index.php?topic=1298.0 \\
http://www.klubkat.com/messageboard/discus/messages/3/151.html?1138547123%2B%255BPLM=0%255D%2BGET%2Bhttp://www.klubkat.com/messageboard/discus/messages/3/151.html?1138547123%2B%255B0,6507,5587%255D%2B-%253E%2B%255BN%255D%2BPOST%2Bhttp://www.klubkat.com/messageboard/discus/board-post.cgi%2B%255BR=500%255D%255B0,0,886%255D \\
http://hiphop.eurobb.ru/viewtopic.php?id=1336 \\
http://musicians-acces.com/wwwboard/messages/1067.html \\
http://www.energie2007.fr/forums/viewtopic.php?t=2716 \\
http://ponce.inter.edu/forums/ayuda/messages/444.html \\
http://www.trishkin.ru/forum/trishkin/read.php?id_forum=1&id_theme= \\
http://magicanime.rolka.su/viewtopic.php?id=22id=62 \\
http://www.hobokenmsta.com/read.php?id=1129 \\
http://filmfanclub.spybb.ru/viewtopic.php?id=20 \\
http://immeln.nu/wwwboard/messages/75458.html \\
http://www.pescuitulsportiv.ro/forum/showthread.php?tid=265 \\
http://admin.freeblog.hu/messages/blog/comments/archives/2010/12/21/Az_endoszimbionta_gentranszfer/ \\
http://winxclub3.forumbb.ru/viewtopic.php?id=255 \\
http://www.chilecologico.cl/empresarios-pretenden-explotar-carbon-en-una-superficie-equivalente-al-40-de-la-isla-guafo/foro/viewtopic.php?t=403 \\
http://www.dierennieuws.nl/forum/smf/index.php?topic=18754.0 \\
http://lagenetica.info/foro_es/read.php?f=1&i=4882&t=4697&v=f%2B%255BPLM=0%255D%2BGET%2Bhttp://lagenetica.info/foro_es/read.php?f=1&i=4882&t=4697&v=f%2B%255B0,151546,150933%255D%2B-%253E%2B%255BN%255D%2BPOST%2Bhttp://lagenetica.info/foro_es/post.php%2B%255B0,0,11974%255D+%5BPLM=0%5D+GET+/foro_es/read.php?f=1&i=4882&t=4697&v=f%2B%255BPLM=0%255D%2BGET%2Bhttp://lagenetica.info/foro_es/read.php?f=1&i=4882&t=4697&v=f%2B%255B0,151546,150933%255D%2B-%253E%2B%255BN%255D%2BPOST%2Bhttp://lagenetica.info/foro_es/post.php%2B%255B0,0,11974%255D+%5B0,84575,83962%5D+-%3E+%5BN%5D+POST+http://lagenetica.info/foro_es/post.php+%5B0,0,9895%5D \\
http://misomakeup.co.kr/lcw//read.php?code=board&page=29&number=6391&keyfield=&key=&term=&title= \\
http://www.leader-lines.com/dev10/support/dev10/messages/forum/index.php \\
 \\
chrisvdavid@gmail.com \\
chrisvdavid@gmail.com \\
chrisvdavid@gmail.com <mysign(Coomiflumnfuh,2012-1-11 11:31 pm)>
<longcomments(100)>
----
<trackbackreceived>
</div>
----
[[컴퓨터분류]]
    C<$f

Perl POD

Plain Old Documentation format

1. perlpod 정리
1.1. Ordinary Paragraph
1.2. Verbatim Paragraph
1.3. Command Paragraph
1.4. Formatting Codes
1.5. The Intent
1.6. Embedding Pods in Perl Modules
1.7. Hints for Writing Pod
1.8. 참고
2. 한글
3. 기타 & Comments

1. perlpod 정리

Perldoc:perlpod 요약

Pod 마크업을 이루는 세 가지 기본적인 단락 : ordinary, verbatim, command

1.1. Ordinary Paragraph

1.2. Verbatim Paragraph

1.3. Command Paragraph

    =pod
    =head1 Heading Text
    =head2 Heading Text
    =head3 Heading Text
    =head4 Heading Text
    =over indentlevel
    =item stuff
    =back
    =begin format
    =end format
    =for format text...
    =encoding type
    =cut

 =head1 Heading Text
 =head2 Heading Text
 =head3 Heading Text
 =head4 Heading Text

=head2 Object Attributes
=head2 Possible Values for C<$/>

 =over indentlevel
 =item stuff...
 =back

=item Using C<$|> to Control Buffering

 =cut

 =pod

=item stuff()

This function does stuff.

=cut

  sub stuff {
    ...
  }

=pod

Remember to check its return value, as in:

    stuff() || die "Couldn't do stuff!";

=cut

 =begin formatname
 =end formatname
 =for formatname text...

=begin html

<hr> <img src="thang.png">
<p> This is a raw HTML paragraph </p>

=end html

=for html <hr> <img src="thang.png">
<p> This is a raw HTML paragraph </p>

=begin html

<br>Figure 1.<br><IMG SRC="figure1.png"><br>

=end html

=begin text

---------------
|  foo        |
|        bar  |
---------------

^^^^ Figure 1. ^^^^

=end text

=for comment
Make sure that all the available options are documented!

 =encoding encodingname

=encoding utf8
=encoding koi8-r
=encoding ShiftJIS
=encoding big5

유의: 명령어가 있는 라인이 아니라 명령어가 포함된 단락의 끝날 때 그 명령어가 끝난다. 따라서 각 명령어는 단락을 끝내기 위해 바로 뒤에 빈 라인이 있어야 한다:

=over

=item *

First item

=item *

Second item

=back

=over

=item Foo()

Description of Foo function

=item Bar()

Description of Bar function

=back

1.4. Formatting Codes

포매팅 코드 안에 ">"가 들어가야 되는 경우, 여러 가지 방법이 있음
    C<< $a <=> $b >>
    C<<< $a <=> $b >>>
    C<<<<  $a <=> $b     >>>>
이것은 모두
    C<$a E<lt>=E<gt> $b>
와 같다

    C<<< open(X, ">>thing.dat") || die $! >>>
    C<< $foo->bar(); >>
위의 형태가 아래 형태보다 읽기 좋다
    C<open(X, "E<gt>E<gt>thing.dat") || die $!>
    C<$foo-E<gt>bar();>

1.5. The Intent

1.6. Embedding Pods in Perl Modules

__END__

=head1 NAME

Time::Local - efficiently compute time from local and GMT time

1.7. Hints for Writing Pod

1.8. 참고

2. 한글

윈도우 명령프롬프트에서 출력할 경우:

3. 기타 & Comments

Truth About Triactol Does Triactol Work Yahoo Triactol Price In India

http://www.mellencamp.com/forum/index.php?topic=957.0;prev_next=prev
http://www.makaticity.com/messages/message_board/post_message.php?parent_message_id=197974&message_board_category_id=1
http://www.cruffler.com/discus/messages/43/331.html?1073060793
http://admin.freeblog.hu/messages/blog/comments/archives/2006/08/11/Ehes_vagyok_de_nem_eszek_macskat/
http://www.energie2007.fr/forums/viewtopic.php?t=2716
http://www.upweek.ru/forum/viewtopic.php?f=3&t=33240
http://www.advisors.iao.fhg.de/discus/messages/1/1.html?TuesdayMarch520021200pm
http://superdog.4bb.ru/viewtopic.php?id=35
http://www.gowon.cn/bbs/viewthread.php?tid=2264%2B%255BPLM=0%255D%2BGET%2Bhttp://www.gowon.cn/bbs/viewthread.php?tid=2264%2B%255B0,97515,99128%255D%2B-%253E%2B%255BN%255D%2BPOST%2Bhttp://www.gowon.cn/bbs//post.php?action=reply&fid=107&tid=2264&extra=&replysubmit=yes%2B%255B0,0,12069%255D
http://meangirlssworld.forumbb.ru/viewtopic.php?id=8
http://www.ecoleclassique.com/wwwboard/messages/8930.htm
http://www.ffs.net/foren-hosting/gdhm/wwwforum/messages/803.htm
http://www.phasure.com/index.php?topic=1651.0;prev_next=prev
http://ecfac.ru/forum/index.php?topic=34.0;prev_next=prev
http://narutofuture.9bb.ru/viewtopic.php?id=360
http://info-realty.ru/forum/forum4/topic2258/messages/forum/
http://www.schlafumgebung.de/forum/messages/5544.html
http://www.goulmima4.com/vb/showthread.php?t=3730
http://genussforum.com/cgi1/messages/cgi1/messages/cgi1/index.html
http://www.tamdee.net/main//read.php?tid-1744.html
http://www.time4fish.net/board/index.php?topic=11425.0
http://www.hotbloodedgaming.com/forum/showthread.php?p=240715
http://www.automag.be/forum/viewtopic.php?f=10&t=6119
http://www.angielski-online.pl/literatura/92-emily-dickinson/forum/viewtopic.php?f=8&t=472
http://www.bms-ts.de/wwwboard/messages/12382.html
http://timesofmaroders.4bb.ru/viewtopic.php?id=25
http://www.psionic3d.co.uk/forums/showthread.php?11-Swamp-Thing...
http://www.echo-n.ru/f/viewtopic.php?f=17&t=147
http://october.perm.ru/forum/showthread.php?fid=1&tid=0
http://www.medlz.de/forum/messages/3471.html
http://www.inquiceweb.com/IWboard/messages/board-topics.html
http://www.schlesierland.de/forum/messages/7905.html
http://inout.pp.ua/showthread.php?t=200
http://g6s6.debthai.net/home/forum/viewthread.php?forum_id=2&thread_id=142&rowstart=160
http://goldensnitch.rolevaya.ru/viewtopic.php?id=1

http://www.winline.ru/forum/forum7/topic1959/messages/auth/?backurl=%2Fforum%2Fforum7%2Ftopic1959%2Fmessages%2F
http://www.collegeforums.ca/forum/index.php?topic=4.0
http://grog.ca/forum/viewtopic.php?p=9656
http://old.mijsvit.ua/index.php?option=com_smf&Itemid=128&a=http://old.mijsvit.ua/forum/index.php?topic=131.0
http://www.virtual-tuned.phorum.cz/viewtopic.php?f=27&t=61
http://www.levhair.org.il/Forum/Messages/AddResponse.asp?ItemID=243&CategoryID=487&Page=1
http://alchemy.fobb.ru/viewtopic.php?id=2
http://arzgulhightschool.rolka.su/viewtopic.php?id=515
http://www.heppell.ca/messages/Messages.asp
http://hoptoit.com/discuss/messages/1/1.html
http://twilightimagination.rolka.su/viewtopic.php?id=403
http://www.goathiphop.com/forum/viewtopic.php?f=7&t=26
http://www.arcto.ru/FORUMS/messages/45/cgi/2/board-newmessages.cgi?method=last&number=1&units=1440&where=all
http://www.ftsldrs.com/forum/showthread.php?7-All-the-latest-music
http://progtuts.info/forum/viewtopic.php?id=4
http://www.bbvforums.org/forums/messages/1954/71572.html
http://www.roguetemple.com/forums/index.php?topic=1298.0
http://www.klubkat.com/messageboard/discus/messages/3/151.html?1138547123%2B%255BPLM=0%255D%2BGET%2Bhttp://www.klubkat.com/messageboard/discus/messages/3/151.html?1138547123%2B%255B0,6507,5587%255D%2B-%253E%2B%255BN%255D%2BPOST%2Bhttp://www.klubkat.com/messageboard/discus/board-post.cgi%2B%255BR=500%255D%255B0,0,886%255D
http://hiphop.eurobb.ru/viewtopic.php?id=1336
http://musicians-acces.com/wwwboard/messages/1067.html
http://www.energie2007.fr/forums/viewtopic.php?t=2716
http://ponce.inter.edu/forums/ayuda/messages/444.html
http://www.trishkin.ru/forum/trishkin/read.php?id_forum=1&id_theme=
http://magicanime.rolka.su/viewtopic.php?id=22id=62
http://www.hobokenmsta.com/read.php?id=1129
http://filmfanclub.spybb.ru/viewtopic.php?id=20
http://immeln.nu/wwwboard/messages/75458.html
http://www.pescuitulsportiv.ro/forum/showthread.php?tid=265
http://admin.freeblog.hu/messages/blog/comments/archives/2010/12/21/Az_endoszimbionta_gentranszfer/
http://winxclub3.forumbb.ru/viewtopic.php?id=255
http://www.chilecologico.cl/empresarios-pretenden-explotar-carbon-en-una-superficie-equivalente-al-40-de-la-isla-guafo/foro/viewtopic.php?t=403
http://www.dierennieuws.nl/forum/smf/index.php?topic=18754.0
http://lagenetica.info/foro_es/read.php?f=1&i=4882&t=4697&v=f%2B%255BPLM=0%255D%2BGET%2Bhttp://lagenetica.info/foro_es/read.php?f=1&i=4882&t=4697&v=f%2B%255B0,151546,150933%255D%2B-%253E%2B%255BN%255D%2BPOST%2Bhttp://lagenetica.info/foro_es/post.php%2B%255B0,0,11974%255D+%5BPLM=0%5D+GET+/foro_es/read.php?f=1&i=4882&t=4697&v=f%2B%255BPLM=0%255D%2BGET%2Bhttp://lagenetica.info/foro_es/read.php?f=1&i=4882&t=4697&v=f%2B%255B0,151546,150933%255D%2B-%253E%2B%255BN%255D%2BPOST%2Bhttp://lagenetica.info/foro_es/post.php%2B%255B0,0,11974%255D+%5B0,84575,83962%5D+-%3E+%5BN%5D+POST+http://lagenetica.info/foro_es/post.php+%5B0,0,9895%5D
http://misomakeup.co.kr/lcw//read.php?code=board&page=29&number=6391&keyfield=&key=&term=&title=
http://www.leader-lines.com/dev10/support/dev10/messages/forum/index.php

chrisvdavid@gmail.com
chrisvdavid@gmail.com
chrisvdavid@gmail.com
-- Coomiflumnfuh 2012-1-11 11:31 pm
이름:  
Homepage:
내용:
 

<trackbackreceived>

컴퓨터분류

이 수정본 편집일: 2012-1-11 11:31 pm (변경사항 [d])
3362 hits | Permalink | 변경내역 보기 [h] | 현재 수정본 보기 | 18 번째 수정본 소스 보기