in reply to Storing regex values in an array and processing the array
print {$final_fh} /$pattern/, "\n";
This will probably still not do what you want, though. Read Regexp Quote Like Operators for details on what the match returns in various contexts and with various options (e.g. /g).
|
|---|