in reply to Key to use for files in db!
Obfuscated code embedded on a database table entry?
... sounds good :-P
If i've undestood the problem, i think you can put this:
In that case, you must store the string 'return (key1,value1,key2,value2)' and then make the eval; in fact something like this:perl -MDumpvalue -e 'my $dumper=new Dumpvalue; %hash=eval qq(return (k +ey1,value1,key2,value2)); $dumper->dumpValue(\%hash)'
use Dumpvalue; use DBI; my $dumper = new Dumpvalue; my $mysql = new DBI(...); my $mysql->conect(); my $hash_string = $mysql->do('select .. from table'); %hash=eval $hash_string; $dumper->dumpValue(\%hash)
Good Luck!
turo
|
|---|