Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Recursive directories

by Jenda (Abbot)
on Apr 02, 2014 at 12:08 UTC ( #1080761=note: print w/ replies, xml ) Need Help??


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

Foo->bar('hello');
is thus equivalent to
Foo::bar( 'Foo', 'hello');

Jenda
Enoch was right!
Enjoy the last years of Rome.


Comment on Re: Recursive directories
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1080761]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2014-09-20 09:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (158 votes), past polls