in reply to Re^2: XML::Simple private members
in thread XML::Simple private members

"The filename is required many sub calls away."

If your own program is OO, and store filename as a property of your class, you can access it without pass it as a parameter, the real parameter you need to pass is the class (a blessed hash ref or whatever).

Then you will not care the many calls in between any more.