会有人知道的方式来动态增量项目冠军的整数?这主要是为了避免在每一步骤中需要添加/移除新步骤的情况下必须更改每个步骤编号。下面是一个小的三个步骤,让您的模板结构的一个粗略的想法:自动递增整数的POD项目
=step_wash 1. Wash
<p>Add washing steps here</p>
=cut
# Throw some perl code here to wash stuff
=step_dry 2. Dry
<p>Add drying steps here</p>
=cut
# Throw some perl code here to dry things
=step_fold 3. Fold
<p>Add folding steps here</p>
=cut
# Fold all of the things Perl!
忽视的这个项目名称和结构,目的是尝试消除使用静态编号的标题每一个项目。我想知道是否有一种可能的方式来生成一个递增的整数;几乎就像用{ print $i++ }
等替代1,2,3 ......等,但在POD中。
关于[reddit]的crosspost(http://www.reddit.com/r/perl/comments/1nv2bs/perlpod_ordered_list/) – amon
您可以随时从模板生成您的吊舱 – ikegami