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
What is lexical variable in perl?
How do I do fill_in_the_blank for each file in a directory?
What package you use to create a windows services?
You want to connect to sql server through perl. How would you do that?
What is the difference between die and exit in perl?
Differentiate between arrays and list in perl.
What $! In perl?
Explain what is perl language?
There are some duplicate entries in an array and you want to remove them. How would you do that?
What is -> symbol in perl?
How are parameters passed to subroutines in perl?
What does the’$_’ symbol mean?
Mention the difference between die and exit in Perl?
How would you ensure the re-use and maximum readability of your perl code?
Explain USE and REQUIREMENT statements?