Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Executing perlcode from variable

by choroba (Abbot)
on May 12, 2014 at 09:58 UTC ( #1085774=note: print w/ replies, xml ) Need Help??


in reply to Executing perlcode from variable

It is possible, but it's a security risk. Are you 100% sure only lawful good Perl developers will be able to modify the database table? See eval for details if so.

Using some kind of a dispatch table might be a more secure solution.

لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ


Comment on Re: Executing perlcode from variable
Re^2: Executing perlcode from variable
by ASadon (Initiate) on May 12, 2014 at 10:23 UTC
    Thanks Anonymous Monk and Choroba, that's what I was looking for!
Re^2: Executing perlcode from variable
by Laurent_R (Parson) on May 12, 2014 at 18:44 UTC
    If at all possible, I would also rather go for a dispatch table within the program (or a used module), rather than a DB with code snippets.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1085774]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2014-11-27 05:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (180 votes), past polls