=~ with a string implies regex m//atchDocumented in doc:/perlop#Binding-Operators:
If the right argument is an expression rather than a search pattern, substitution, or transliteration, it is interpreted as a search pattern at run time.
-QM
--
Quantum Mechanics: The dreams stuff is made of
In reply to Re^2: Misreading m// documentation (perlop =~ )
by QM
in thread Misreading m// documentation
by QM
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |