Top "Eval" questions

eval is a function that allows a programmer to execute arbitrary code written in the same language, from a string variable within a code.

What does Python's eval() do?

In the book that I am reading on Python, it keeps using the code eval(input('blah')) I read the …

python eval
eval command in Bash and its typical uses

After reading the bash man pages and with respect to this post. I am still having trouble understanding what exactly …

linux bash shell scripting eval
Why is using the JavaScript eval function a bad idea?

The eval function is a powerful and easy way to dynamically generate code, so what are the caveats?

javascript security eval
What's the difference between eval, exec, and compile?

I've been looking at dynamic evaluation of Python code, and come across the eval() and compile() functions, and the exec …

python dynamic eval exec
Evaluate expression given as a string

I'm curious to know if R can use its eval() function to perform calculations provided by e.g. a string. …

r eval r-faq
Using python's eval() vs. ast.literal_eval()?

I have a situation with some code where eval() came up as a possible solution. Now I have never had …

python eval abstract-syntax-tree
How to modify a global variable within a function in bash?

I'm working with this: GNU bash, version 4.1.2(1)-release (x86_64-redhat-linux-gnu) I have a script like below: #!/bin/bash e=2 function …

bash variables global-variables eval
Is there an eval() function in Java?

I have a string like the following: String str = "4*5"; Now I have to get the result of 20 by using the …

java eval
Executing <script> elements inserted with .innerHTML

I've got a script that inserts some content into an element using innerHTML. The content could for example be: <…

javascript dom eval innerhtml
How to print / echo environment variables?

How do I print the environment variable just being set? NAME=sam echo "$NAME" # empty You can see here using …

bash eval