By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,028 Members | 1,010 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,028 IT Pros & Developers. It's quick & easy.

Commenting out Multiple Lines

P: 68
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
Share this Question
Share on Google+
4 Replies


P: 68
Thank You

Ravi
Apr 20 '07 #3

adarshtp
P: 12
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

P: n/a
^^ thank you so much
Oct 6 '10 #5

Post your reply

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