go ahead... be a heretic | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I'm working on the regular Perl Quiz of the Week, and while I've got it solved, I don't understand why I had to do something to dwiw. The included code shows the pertinant problem.
I take a line of the box to be put into the output. $putNum is a boolean variable. The problem is that instead of updating $boxLine with the current word number, it continues to put in the number 1. The problem went away if I instead use a seperate variable in the foreach line and then later assign its value to $boxLine. Please help me understand why this is happening.
In reply to Question of variable interpolation in regex by SparkeyG
|
|