in reply to Setting variables inside a hash: newbie question
I think others have answered your question but I would like to add that any time I find myself passing a hash (or hash reference) around to a whole bunch of functions that manipulate the hash, it starts becoming obvious that I should think about converting that hash into a class and the all those functions into methods of that class. This does not work all the time and for all the functions but most of the time on a majority of the functions, at least for me.
|
---|