Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Executing perlcode from variable

by choroba (Chancellor)
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.

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

Replies are listed 'Best First'.
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 (Abbot) 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?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2016-10-28 15:09 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (385 votes). Check out past polls.