in reply to Variable Interpolation Interpolation

Ack, symbolic references! Perhaps a better way would be to look in the symbol table of $fromQuery:: like so
print "found $f!\n" if grep($_ eq $f, keys %fromQuery::);
For further info on why symbolic references are generally a no-no check out Dominus' enlightening articles here, here and here.
HTH

broquaint