What is the difference between chop & chomp functions in perl?
Answer Posted / nagaraju kancherla
chop() removes the last character from a scalar value.
chomp() checks whether the last characters of a string or
list of strings match the input line separator defined by
the $/ system variable. If they do, chomp removes them.
Is This Answer Correct ? | 25 Yes | 5 No |
Post New Answer View All Answers
Difference between the variables in which chomp function work ?
Explain '->' in perl?
Why Perl aliases are considered to be faster than references?
Explain what is perl language?
You want to print the contents of an entire array. How would you do that?
What is 'rollback' command in perl?
What are prefix dereferencer?
Can inheritance be used in perl? Explain with the help of an example.
What is -> symbol in perl?
Explain arrays in perl.
List all the features of perl programming?
Which functions in perl allows you to include a module file.
What is cpan in perl?
Can inheritance be used in perl?
What can be done for efficient parameter passing in perl?