Ask a Question related to Perl / CGI, Design and Development.
-
itstud #1
'eval' help please...
Trying to write a little script that uses eval like this:
eval("\\$$key = \\"$value\\"");
This doesn't work and below is the error. Any help please?
Scalar found where operator expected at samp.pl line 17, near ""\\$$key = \\"$value"
(Missing operator before $value?)
Backslash found where operator expected at samp.pl line 17, near "$value\"
(Missing operator before \?)
syntax error at samp.pl line 17, near ""\\$$key = \\"$value"
Execution of samp.pl aborted due to compilation errors.
Junior Member
- Join Date
- May 2011
- Posts
- 1
-
What is eval?
Can anybody explain the functionality of eval in brief? Thanks in advance, Mallik. -
Eval()
I know i could use EVAL to evaluate VARs but what about if i want to evaluate a Var that have a funtion onit? like A="math.Cos(65)" B=Eval(A);... -
eval vs. set?
I'm trying to dynamically create movieclip instances. They seem to be created fine, but when I go to move them it does not work. I've tried line 1... -
eval'
I am retrieving the following string from the database. " and upper(gsa_template_data_header) >= '".$start_selection."' and... -
eval
PHP-Code: eval('?>'.$string) Vars: eval('$string="'.str_replace('"','\\"',$string).'";'); ------------------------



Reply With Quote

