What is the difference between chop & chomp functions in perl?
Answer Posted / preethi
chop removes last character of the given string whereas
chomp removes the whitespace along with the character at the
end
chop-------> Perl----> Per
chomp------> Perl Program ----> Perl
| Is This Answer Correct ? | 4 Yes | 15 No |
Post New Answer View All Answers
What is the different between array and hash in perl programming?
How to find the length of an array in perl?
Explain chomp?
What are perl array functions?
I have one question regarding to eval function. I know eval function is use for error checking but I am not able to understand below line. eval \'exec perl -S $0 ${1+\"$@\"}\' if 0; $0 for script name $@ set if error occur
What is the difference between single (') and double (") quote in a string in perl?
how to extract pin_code,phone_number,year from text file using regular expressions in perl
How to renaming a file in perl programming?
What are the various flags/arguments that can be used while executing a perl program?
Explain perl. What are the advantages of programming in perl?
Mention how many ways you can express string in Perl?
What are the features of perl language?
what is the difference between java and cgi?
What does undef function in perl?
what is the function that is used to identify how many characters are there in a string?