in reply to Re^2: Changing Local Variable Out of Context
in thread Changing Local Variable Out of Context

But worst of all are global vars. To me, using those is like depending on a "side effect".

Global variables have their use cases. In Perl, there are probably more than you think. STDERR for example.

Global variables can be even more important with other programming languages and use cases. For example in Arduinos and other microcontroller applications. When you only got 1024 RAM bytes to work with, you want to be efficient and not "waste" any on unneeded OO stuff.

PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP
  • Comment on Re^3: Changing Local Variable Out of Context