Sadly i'm more experienced with c++ and js and so its a fight with Perl as beginner.
Code: Select all
my $txt = "test";
#add new textarea
my $sbTextArea= q~
<textarea id="info" data-id = $txt ></textarea>
~;
${$Param{Data}} =~ s{(<...>)}{$1$sbTextArea};
The data-id will be showed as "$txt" and not with value test?