print operator in Perl is used to print the values of the expressions in a List passed to it as an argument. Print operator prints whatever is passed to it as an argument whether it be a string, a number, a variable or anything. Double-quotes(“”) are used as a delimiter to this operator.
Syntax: print “”
0 on failure and 1 on success.
Position of 'or' in the string 7 Array of Integers is 10 20 30 40 50 60
Position of 'o G' in the string 9 Array of Integers -10 20 15 -40 45 -60
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.