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
Define operators used in perl?
What is the easiest way to download the contents of a URL with Perl?
How to disable the mod_perl from apache_server as i have used perlfect search on the site and its pagination is not working and the remedy is to disable the mod_perl.
What are scalars?
List the prefix dereferencer in Perl.
How to compare two strings in perl?
What are the various uses of perl?
Explain ivalue?
How can the user execute a long command repeatedly without typing it again and again?
Explain lexical variables.
How can we create perl programs in unix, windows nt, macintosh and os/2 ?
Explain chomp?
What is the difference between die and exit in perl?
Explain which feature of PERL provides code reusability?
You want to open and read data files with perl. How would you do that?