Google News
logo
Perl - Quiz(MCQ)
Which function is used for handling substitutions in perl?
A)
s
B)
tr
C)
str
D)
tr and s

Correct Answer :   tr and s


Explanation : The s and tr functions handle all substitutions in perl. The s command is used in same way as it was used in sed while tr is used translating the characters in the same way as the UNIX tr command does.

Advertisement