Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: Executing perlcode from variable

by choroba (Bishop)
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 (Canon) 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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2018-04-25 22:33 GMT
Find Nodes?
    Voting Booth?