471,862 Members | 1,683 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,862 software developers and data experts.

Commenting out Multiple Lines

hi,

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>
</tr>
</table>
";

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

Thanks

Ravi
Apr 20 '07 #1
4 27715
Thank You

Ravi
Apr 20 '07 #3
Hi Dude,

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

...some perl code...
=head
........some perl code to be commented....
=cut

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
NeoPa
reply views Thread by NeoPa | last post: by
reply views Thread by YellowAndGreen | last post: by
aboka
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.