in reply to Help me to understand code
"my script"? You perhaps mean someone else's script that you have copied or are trying to understand?
The key to understanding it is that do compiles the contents of file whos name is given in $file into the context of the executing code. That is likely to introduce new variables into the context of the executing code.
The series of if statements check the outcome of the compilation process.
Note that in general this is a very insecure technique for managing configuration. You would be much better to use something like YAML instead.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Help me to understand code
by Marshall (Canon) on Jul 13, 2009 at 01:02 UTC |