Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
File::Find incompatible with OO perl?by vaevictus (Pilgrim) |
on Feb 09, 2004 at 16:44 UTC ( [id://327659]=perlquestion: print w/replies, xml ) | Need Help?? |
vaevictus has asked for the wisdom of the Perl Monks concerning the following question: Okay ... incompatible might be a bit of an exaggeration, but it doesn't play nice. :) What I want to simply do, is use an object method as the "wanted" function for File::Find. What I get is no access to the File::Find namespace vars, and the $_ is somehow borked with the object reference taking its place.
This produces undefined values for all but $self which is setup properly. I'm hoping TMTOWTDI, but the only way i've been able to use my object function was to write a separate non-OO wrapper. So... am I doing something wrong, or is there a better way of doing it? Or is File::Find just not OO friendly?
Back to
Seekers of Perl Wisdom
|
|