When you call a method (class or instance) $_[0] contains the thing the method was called upon. In your case this is $obj, and $_[1] would contain the path you passed as the argument. Your code makes a new instance inside the method itself, then returns that new instance.
To put it bluntly, you've got some confusion about OO in Perl. See perlboot and the other OO tutorials for more details.
In reply to Re: Attempting to read file name into my XML Parsing Object
by Fletch
in thread Attempting to read file name into my XML Parsing Object
by Cappadonna3030
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |