in reply to Re^2: convert to XML
in thread convert to XML
The value of [WRITER] is for [KEY] in the output.
The perlop says that the right operand is not evaluated while the operator is in the "false" state, and the left operand is not evaluated while the operator is in the "true" state. Meaning that once /^\[(\w+)\]/ is true, it's not evaluated anymore, so $1 is still KEY when print is performed.
|
|---|