in reply to Should we Localize $_ ?


This is an interesting question. While entirely uncertain if i have the best coding policy, usually i break it down this way:

Note how i localize $_ in subroutines whether i know it's going into a loop structure or not. This assures i'm not taken by surprise when i have to add an extension because my manager didn't tell me all the specs to start with :)

These are just my personal habits, i'd be happy to hear other monks outlook on the matter as well.

Hope This Helps,
jynx