컴퓨터 엑셀 워드 포토샵 구글어스 WINDOWS JAVASCRIPT JAVA C++

 
Monday, November 19, 2007

POD 확장자 파일의 용도? pod File


".pod"라는 확장자를 가진 파일들은 상당수가 "펄(Perl) 매뉴얼 문서" 파일입니다. POD 란 "Plain Old Documentation"의 약자입니다. 펄(Perl)을 설치하면 많은 pod 파일들이 같이 깔립니다.

pod는 HTML과 비슷한 형식의 문서이지만, 훨씬 더 간단한 것입니다. pod 파일은 간단한 텍스트 파일이기에, 텍스트 에디터로 보면 됩니다. 그렇지만 Vim 에디터로 보면 문법 강조를 해 주기에 더 편리하게 볼 수 있습니다.

POSIX.pod 라는 파일의 내용을 (문법 강조 없는) 에디터로 보면 다음과 같습니다:

=head1 NAME

POSIX - Perl interface to IEEE Std 1003.1

=head1 SYNOPSIS

    use POSIX;
    use POSIX qw(setsid);
    use POSIX qw(:errno_h :fcntl_h);

    printf "EINTR is %d\n", EINTR;

    $sess_id = POSIX::setsid();

    $fd = POSIX::open($path, O_CREAT|O_EXCL|O_WRONLY, 0644);
        # note: that's a filedescriptor, *NOT* a filehandle

=head1 DESCRIPTION

The POSIX module permits you to access all (or nearly all) the standard
POSIX 1003.1 identifiers.  Many of these identifiers have been given Perl-ish
interfaces.

I<Everything is exported by default> with the exception of any POSIX
functions with the same name as a built-in Perl function, such as
C<abs>, C<alarm>, C<rmdir>, C<write>, etc.., which will be exported
only if you ask for them explicitly.  This is an unfortunate backwards
compatibility feature.  You can stop the exporting by saying C<use
POSIX ()> and then use the fully qualified names (ie. C<POSIX::SEEK_END>).

...이하 생략...


pod 는 설명서 파일이고, 프로그램 파일은 아닙니다. pod는 구조화된 문서이기에 HTML 등으로 자동으로 변환하기도 쉽습니다.




tag: perl
Perl | 펄

0 Comments:

Post a Comment

<< Home RSS 2.0 feed

구글 Google 에서 제공하는 무료 블로그 서비스인 블로거 Blogger 의 인터넷 주소는 www.blogger.com 입니다. Blogger 에 블로그를 만들면, blogspot.com 이라는 주소에 블로그가 생성됩니다.
블로그를 직접 방문하지 않고도 최신 게시물을 구독하려면 RSS 2.0 feed 주소를 리더기에 등록하시면 됩니다.
Previous Posts
Monthly Archives
Top