![]() Searches a string for a pattern match, and in scalar context returns true if it succeeds, false if it fails. It magically differs from a string containing the same characters: ref(qr/x/) returns “Regexp” however, dereferencing it is not well defined (you currently get the normalized version of the original pattern, but this may change). ![]() ![]() The returned value is a normalized version of the original pattern. Returns a Perl value which may be used instead of the corresponding /STRING/msixpodual expression. If “‘” is used as the delimiter, no interpolation is done. STRING is interpolated the same way as PATTERN in m/PATTERN/. This operator quotes (and possibly compiles) its STRING as a regular expression. I can’t imagine what it would do in translates, etc. With matching, returns true if it DOESN’T match. This operator appears between the string var you are comparing, and the regular expression you’re looking for (note that in selection or substitution a regular expression operates on the string var rather than comparing). Options, the modifiers after the expression Quote-like Operators, appears after match operator Match Operators, the operator between the variable and the expression Here we divide the expression into 4 parts: =~ A perl regular expression usually comes in something like this:
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |