in reply to Re^2: A 'print' at one spot changes a value at another
in thread A 'print' at one spot changes a value at another

The print statment lets perl know to close on the $sep variable. Without the print, perl doesn't know you want to access $sep because it doesn't look inside the eval. Changing to our makes $sep global so that it will always be available, not just when perl sees a function is going to use it.


___________
Eric Hodges
  • Comment on Re^3: A 'print' at one spot changes a value at another