From: Lee C. <lec...@ya...> - 2004-08-23 22:37:21
|
Hello Everyone, I have run across a slight problem or a request for a new feature with the Log::Log4perl::Appender::File.pm module. I asked for a filename method to access the 'filename' attribute but now I want to override the 'filename' attribute in a child module (what is the correct OO term for something down the tree in inheritence...?) The problem is that the 'file_open' method/sub uses the attribute not the method so if I override 'filename' method it doesn't get used by the 'file_open'. I have patched (and included) diff for the 'File.pm' to use the method instead of the attribute. I could have override the 'file_open' method but that is more than the three lines to override the 'filename' method... Yes I am very lazy. ;) Let me know if this sounds odd or if I'm asking for wildly bad things? Thanks and keep up the great work, Lee __________________________________ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail |