POD là gì?

Abbrev None

Khi đề cập đến Perl, POD là viết tắt của "plain old documentation". Nó là một ngôn ngữ đánh dấu (markup language) đơn giản cho phép các lập trình viên khối comment vào chương trình Perl của họ. Ví dụ: trong mã Perl dưới đây có in "Hello World!" Perl bỏ qua POD ở cuối script. POD bắt đầu bằng "= pod" và sau đó kết thúc bằng "= cut".


#!/usr/bin/perl
#Example of using pod for blocks of comments
print "Hello World!";
=pod
Example text part of the pod and is ignored when Perl runs the script.
It can be multiple lines and contain any text and keeps going until 
it sees the cut line.
=cut

Learning English Everyday