Google News
logo
Perl - Quiz(MCQ)
To repeat a string, perl uses ___ operator.
A)
.
B)
/
C)
\\
D)
x

Correct Answer :   x


Explanation :

 perl uses the x operator to repeat a string. For example, the following command will print * 10 times;
$ perl  -e  ‘print “*” x 10 ;’
**********

Advertisement