473,543 Members | 2,448 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Commenting out Multiple Lines

68 New Member

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 27853
4,059 Recognized Expert Specialist
How can I comment out a large block of perl code
Apr 20 '07 #2
68 New Member
Thank You

Apr 20 '07 #3
12 New Member
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

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

Similar topics

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 working, you'll comment it.
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. -Regards Arun
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 wizards. But, I have found that trying to do something "outside the norm" adds a rather large level of complexity and/or data replication. Background I...
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 the compiled library does not produce a valid result (does not load the file). I suspect that this can come from an error in the compile/linking...
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"
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 use comments. Thanks in advance! -- http://www.gotw.ca/resources/clcm.htm for info about ]
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 altogether commented out. Since programmers very often use spaces to improve readability, this happens often. 2. It converts tabs into spaces. I...
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 there an equivalent property for the DataGridView? I have searched, but have not found one. I would like the user to be able to see all the columns...
by: questionit | last post by:
How to commend multiple lines . In C , we can do this /* code lines */ How to do it with VBA
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.