Either quotemeta like Eily showed, or the same thing using \Q...\E:
if ( $line =~ /\w+\s+\Q$inputName\E\s+([\.\d]+)/ ) ...
In reply to Re: Regular expression & raw data
by haukex
in thread Regular expression & raw data
by luckysummer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |