Dear Monks
Can someone point me to some documentation where it says it's legal to have a string on the right side of the match operator?
use strict; use warnings; use 5.016; my $str = 'hello'; if ($str =~ 'he') { say 'yes'; } --output:-- yes
In reply to string on right side of m//? by 7stud
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |