in reply to Recursive directories
Drop the File::Path->.
The point is that you are calling the make_path() as if it was a static/class method, while it's an ordinary, non-OO subroutine. When you write Foo->bar(...), Perl not only looks for subroutine named "bar" in the package "Foo" and its parent packages, but also passes the "Foo" to the bar() subroutine as the first parameter.
Assuming the Foo package contains a bar() subroutine
is thus equivalent toFoo->bar('hello');
Foo::bar( 'Foo', 'hello');
Jenda
Enoch was right!
Enjoy the last years of Rome.
|
|---|