PDA

View Full Version : Multiple line remark or comment in Perl



asylu3
11-09-2004, 07:35 PM
หลายคนคงเบื่อการเขียน perl ที่จะต้องทำ comment ทีล่ะบรรทัดให้เมื่อยมือ
ผมแนะนำให้ทำแบบนี้ครับ สามารถ comment ได้หลายๆบรรทัด
Ex:


=pod
print "This text will not print out";
=cut

hansa
15-12-2007, 08:48 PM
มีวิธีอื่นด้วยครับเช่น
[hide=1]

[code]
=for comment