Keep It Simple, Stupid | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Now that you pointed out what is, in retrospect, the obvious, it's easier to see when you do an identical thing:
We're used to seeing things like this because we declare the variables and make that mental connection to it as "global variable", which you can see getting changed inside foo(). For some reason, that doesn't strike me as so obvious when using $_, since I sort of think of it more as an abstract placeholder for short-term uses of values when I don't want to make a whole new variable. anyway, thanks for the clarification
Dan Heller http://www.danheller.com In reply to Re^2: "$_" vs. $_
by argv
|
|