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
How will you open a file in read-only mode in perl?
How will you declare a variable in perl?
Explain USE and REQUIREMENT statements?
Explain '->' in perl?
How do you match one letter in the current locale?
Where the command line arguments are stored and if you want to read command-line arguments with Perl, how would you do that?
what is the difference between java and cgi?
Remove the duplicate data from @array=(“perl”,”php”,”perl”,”asp”)
What are the advantages and disadvantages of perl language?
How many types of primary data structures in Perl and what do they mean?
What is the function of cgiwrap in cgi programming?
Write an example explaining the use of symbol tables.
How to open a directory in perl?
How to concatenate strings with perl?
How will you get the count of parameters passed to a perl subroutine?