*alexandre* has asked for the wisdom of the Perl Monks concerning the following question:
the line incriminate is the followingsub evalDealView { my $string;my $string2; my $content; my $username = $query->param("username"); $lang = $query->param("lang"); loadLanguage(); my $index_a = $tableArticle->loadEvalBuyPositivIndex();#print "Con +tent-Type: text/html\n\n"; my $table_a = $tableArticle->loadEvalBuyPositivTable(); my $index_b = $tableArticle->loadEvalBuyNegativIndex(); my $table_b = $tableArticle->loadEvalBuyNegativTable(); open (FILE, "<$dir/evaldealview.html") or die "cannot open file $d +ir/evaldealview.html"; while (<FILE>) { #s/\$LABEL{'([\w]+)'}/ exists $SERVER{$1} ? $SERVER{$1} : $1 / +eg; s/\$LANG/$lang/g; s/\$ARTICLE{'evaldealviewindex'}/$index_a/g; s/\$ARTICLE{'evaldealviewtable'}/$table_a/g; s/\$ARTICLE{'evaldealviewnegindex'}/$index_b/g; s/\$ARTICLE{'evaldealviewnegtable'}/$table_b/g; s/\$ERROR{'([\w]+)'}/g; $content .= $_; } return $content; }
The error message is the following Bad evalled substitution pattern. Thanks in advance for your patience.$content .= $_;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Bad evalled substitution pattern
by haukex (Archbishop) on Jan 02, 2023 at 13:19 UTC | |
by *alexandre* (Scribe) on Jan 02, 2023 at 18:02 UTC | |
|
Re: Bad evalled substitution pattern
by Corion (Patriarch) on Jan 02, 2023 at 09:15 UTC |