in reply to Substitution in text files
but rather$message =~ s/\$subKey/$subVar/o;
but your code snippet and your question gives me an idea that you're completely lost. Where's reading of a file after local($/)=undef;? (which is easier to write as just local $/;) where's file writing?my $qkey = quotemeta $key; $message =~ s/$qkey/$recorsData{$key}/;
To say, to answer a question you should know 50% of answer...
Give us more details and your problem will be easier to advice...
|
---|