473,396 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 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 27837
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

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

Similar topics

46
by: Profetas | last post by:
Hi, I know that this is off topic. but I didn't know where to post. Do you comment your source code while coding or after coding. for example: you write a procedure and after it is...
3
by: Arun | last post by:
Hi, I have simple question to ask. How to write multiple Binary files to the Browser using Asp.Net and Visual C#.net I have seen examples where single binary file is written to browser. ...
9
by: Graham | last post by:
I have been having some fun learning and using the new Controls and methods in .Net 2.0 which will make my life in the future easier and faster. Specifically the new databinding practises and...
6
by: julien.durand.1981 | last post by:
hi, I'm just having a weird problem that I can't explain by myself and would appreciate someone else's view on this piece of code (used in a JNI project). Basically if I remove some no-op lines...
1
by: Loading name... | last post by:
hey asp.net 2.0 In my db (sql server 2005) I have a record which consist of multiple lines: "HEY THIS IS A TEST OF MULTIPLE LINES"
100
by: Angel Tsankov | last post by:
Can someone recommend a good source of C/C++ coding style. Specifically, I am interested in commenting style and in particular how to indent comments and the commented code, rather than when to...
6
by: Zytan | last post by:
Ctrl+E, C and Ctrl+E, U will comment and uncomment out multiple lines. However, it has two issues: 1. It will not include the // for empty lines, which makes it hard to 'see' that one group is...
7
by: =?Utf-8?B?TG9zdEluTUQ=?= | last post by:
Hi All :) I'm converting VB6 using True DBGrid Pro 8.0 to VB2005 using DataGridView. True DBGrid has a MultipleLines property that controls whether individual records span multiple lines. Is...
1
by: questionit | last post by:
How to commend multiple lines . In C , we can do this /* code lines */ How to do it with VBA
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.