The return value of the s/// operator is the number of substitutions.
Use the following instead:
$variable =~ s/foo/bar/; say $variable;
In reply to Re^5: Read excel column and compare with array
by Corion
in thread Read excel column and compare with array
by snehit.ar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |