dpatrick has asked for the wisdom of the Perl Monks concerning the following question:
elsif (defined($q->param('task'))) { my $task = $q->param('task'); if ($task =~ /^([\w]+)$/) { $task = $1; # untainting } my $refname = $q->param('refname'); if ($refname =~ /^([\w]+)$/) { $refname = $1; # untainting } my $ref = "Allsys::Resource::ManMan->" . $task . "Document($refnam +e)"; my $documents = {}; $documents->{$refname} = eval($ref); print $documents->{$refname}; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(ar0n) Re: Interpolating variables for use in method calls
by ar0n (Priest) on Jul 13, 2001 at 23:32 UTC | |
by dpatrick (Scribe) on Jul 13, 2001 at 23:52 UTC | |
by lestrrat (Deacon) on Jul 14, 2001 at 02:31 UTC | |
|
Re: Interpolating variables for use in method calls
by suaveant (Parson) on Jul 13, 2001 at 23:34 UTC | |
|
Re: Interpolating variables for use in method calls
by HyperZonk (Friar) on Jul 13, 2001 at 23:33 UTC | |
by dpatrick (Scribe) on Jul 13, 2001 at 23:56 UTC |