in reply to A 'print' at one spot changes a value at another
At compile time, perl doesn't know that the eval string will close over $sep, so it doesn't. If you changed it to a normal closure, it ought to work.
Arguably this is or is not a bug. (If you think it is a bug, please post an algorithm that reliably fixes the bug. Good luck.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: A 'print' at one spot changes a value at another
by pg (Canon) on Aug 15, 2005 at 05:17 UTC | |
|
Re^2: A 'print' at one spot changes a value at another
by ralphmerridew (Acolyte) on Aug 15, 2005 at 12:22 UTC | |
by eric256 (Parson) on Aug 15, 2005 at 14:03 UTC |