Skip to content

Tag Archives: Perl-String-Operators

A string in Perl is a scalar variable and start with a ($) sign and it can contain alphabets, numbers, special characters. The string can… Read More
The qw operator in Perl is used to extract each element of the given string as it is in an array of elements in single-quote… Read More
The y operator in Perl translates all characters of SearchList into the corresponding characters of ReplacementList. Here the SearchList is the given input characters which… Read More
The tr operator in Perl translates all characters of SearchList into the corresponding characters of ReplacementList. Here the SearchList is the given input characters which… Read More
‘ne‘ operator in Perl is one of the string comparison operators used to check for the equality of the two strings. It is used to… Read More
cmp operator in Perl is a string equality comparison operator used to compare if the two strings placed left and right to this operator are… Read More
‘eq‘ operator in Perl is one of the string comparison operators used to check for the equality of the two strings. It is used to… Read More
‘le‘ operator in Perl is one of the string comparison operators used to check for the equality of the two strings. It is used to… Read More
‘gt‘ operator in Perl is one of the string comparison operators used to check for the equality of the two strings. It is used to… Read More
‘ge‘ operator in Perl is one of the string comparison operators used to check for the equality of the two strings. It is used to… Read More
‘lt‘ operator in Perl is one of the string comparison operators used to check for the equality of the two strings. It is used to… Read More
Substitution Operator or ‘s’ operator in Perl is used to substitute a text of the string with some pattern specified by the user. Syntax: s/text/pattern… Read More
q operator in Perl can be used in place of single quotes. It uses a set of parentheses to surround the string. Syntax: q (string)… Read More
qq() operator in Perl can be used in place of double quotes. It uses a set of parentheses to surround the string. Syntax: qq (string)… Read More
m operator in Perl is used to match a pattern within the given text. The string passed to m operator can be enclosed within any… Read More