in reply to Regular expression & raw data

Either quotemeta like Eily showed, or the same thing using \Q...\E:

if ( $line =~ /\w+\s+\Q$inputName\E\s+([\.\d]+)/ ) ...

Replies are listed 'Best First'.
Re^2: Regular expression & raw data
by luckysummer (Novice) on Apr 07, 2017 at 09:30 UTC
    It's useful, thank you.:)