[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

What does chomp statement mean in Perl?

Posted on 2007-08-03
1
Medium Priority
?
1,117 Views
Last Modified: 2013-11-05
What does the following statement mean in perl?

chomp;
0
Comment
Question by:naseeam
1 Comment
 
LVL 39

Accepted Solution

by:
Adam314 earned 1000 total points
ID: 19625717
Generally, it is used to remove the newline characters at the end of a line of input.
See here for details:
http://perldoc.perl.org/functions/chomp.html
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Six Sigma Control Plans
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question