469,366 Members | 2,220 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,366 developers. It's quick & easy.

Commenting out Multiple Lines


i wanted to know how to comment multiple lines in a perl program

say in this piece of code.

for ($i=0; $i<5; $i++)
print "<tr>
<td width=10%>
<input type=\"text\" name=\"c\" size=9 style=\"border: 0px"></td>
<td width=10%> <input type=\"text\" name=\"CP_CQ_id\" size=9 style=\"border: 0px;\"></td>

how do i comment this whole piece of code...
is it the usual way by keeping '#' in front of eavery line...or there is any other way

in C we use something like /*... */, is there something similar in perl

Any kind of help is appriciated


Apr 20 '07 #1
4 27582
Thank You

Apr 20 '07 #3
Hi Dude,

you can comment multiple lines in perl using the head and cut method.

...some perl code...
........some perl code to be commented....

hope this will solve your problem
Apr 24 '07 #4
^^ thank you so much
Oct 6 '10 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

46 posts views Thread by Profetas | last post: by
3 posts views Thread by Arun | last post: by
9 posts views Thread by Graham | last post: by
6 posts views Thread by julien.durand.1981 | last post: by
1 post views Thread by Loading name... | last post: by
100 posts views Thread by Angel Tsankov | last post: by
6 posts views Thread by Zytan | last post: by
7 posts views Thread by =?Utf-8?B?TG9zdEluTUQ=?= | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.