How do I match the folloing string in a line of text? I have to use the $team variable, so I can't escape the $ signs.
Example:
$team = '$moneymaker$';
next if ( $string !~ /$team/ );
It never matches because it evaluates the $moneymaker in the $team string. How do I avoid that?
Example:
$team = '$moneymaker$';
next if ( $string !~ /$team/ );
It never matches because it evaluates the $moneymaker in the $team string. How do I avoid that?