executing perl code stored in a database?
Posted
by TheGNUGuy
on Stack Overflow
See other posts from Stack Overflow
or by TheGNUGuy
Published on 2010-03-26T06:07:31Z
Indexed on
2010/03/26
6:13 UTC
Read the original article
Hit count: 433
Hey everyone,
Is it possible to save some perl code in a database then retrieve it using a select statement and then execute that perl code? I have tried using the eval()
function but that doesn't seem to work.
Here is what I'm trying right now and it doesn't seem to work:
my $temp = $qryResults[0];
print $temp."\n";
eval{"$temp"};
the output is $con->Disconnect();exit;
Thanks for the help!
© Stack Overflow or respective owner