I have the following in my script:
foreach $name ( param() ) {
$value=$dbh->quote(param($name));
print "$name = $value ";
}
I need each $name to also be listed as variable $$name... is there any way to tell it to do that? I tried adding a line
$$name=$name
but that did not work.
Right now, $name=name and $value='value' (value is correct, name needs to be $name rather than just name).
I hope I am stating clearly enough what I need.
foreach $name ( param() ) {
$value=$dbh->quote(param($name));
print "$name = $value ";
}
I need each $name to also be listed as variable $$name... is there any way to tell it to do that? I tried adding a line
$$name=$name
but that did not work.
Right now, $name=name and $value='value' (value is correct, name needs to be $name rather than just name).
I hope I am stating clearly enough what I need.