Removes $/
(page 70) from all elements of the list; returns the (total) number of characters removed.
Chops off the last character on all elements of the list; returns the last chopped character.
Encrypts a string (irreversibly).
Parses and executes expr as if it were a Perl program. The value returned is the value of the last expression evaluated. If there is a syntax error or runtime error, undef is returned by eval, and $@
is set to the error message. See also eval in page 63.
,
offset ]Returns the position of substr in str at or after offset. If the substring is not found, returns –1.
Returns a lowercase version of expr. See also L
in page 7.
Returns expr with its first character in lowercase. See also l
in page 7.
Returns the length in characters of expr.
Returns expr with all regular expression metacharacters quoted. See also Q
in page 7.
,
substr [ ,
offset ]Returns the position of the last substr in str at or before offset. If the substring is not found, returns –1.
,
offset [ ,
len [ ,
newtext ] ]Extracts a substring of length len starting at offset out of expr and returns it. If offset is negative, counts from the end of the string. If len is negative, leaves that many characters off the end of the string. Replaces the substring with newtext if specified, otherwise, may be assigned to.
Returns an uppercase version of expr. See also U
in page 7.
Returns expr with its first character titlecased. See also u
in page 7.