What is the difference between chop & chomp functions in perl?
Answer Posted / ramya
chop removes the last character and returns the character
chopped
Chomp removes any trailing string that corresponds to the
current value of $/ and returns number of characters removed
| Is This Answer Correct ? | 11 Yes | 10 No |
Post New Answer View All Answers
How to open and read data files with Perl
What is v-strings?
Give an example of using the -n and -p option.
How do I generate a list of all .html files in a directory?
How many types of primary data structures in Perl and what do they mean?
Hi, I am a accountant. I am preparing a balance sheet but because of staff shortage and time pressures I cant complete it on time. There is lot of common data with last years which I need not retype and I can manage by editing last year’s balance sheet ? Is their any software on net where I can do this easily??
What are the purpose of close(), getc() and read() functions?
How the interpreter is used in Perl?
Write a program that explains the symbolic table clearly.
What is the importance of perl warnings? How do you turn them on?
What are the advantages and disadvantages of perl language?
What is perl I used for?
Explain USE and REQUIREMENT statements?
What is the difference between single (') and double (") quote in a string in perl?
What is subroutine in perl?