in reply to What is this Moose mojo?

1) Perl can have a sub,scalar, list etc all with the same name. It's not a conflict.

2 & 3) It's probably doing some autoloading. Basically, this allows it to make up new names for functions. Not-so-basically, see http://perldoc.perl.org/perlsub.html#Autoloading.

Replies are listed 'Best First'.
Re^2: What is this Moose mojo?
by ikegami (Patriarch) on Feb 04, 2009 at 23:26 UTC

    Perl can have a sub,scalar, list etc all with the same name.

    Lists can't have names. I think you mean array.

Re^2: What is this Moose mojo?
by stvn (Monsignor) on Feb 05, 2009 at 16:28 UTC
    1) Perl can have a sub,scalar, list etc all with the same name. It's not a conflict.

    While true, this is completely unrelated because it really just relates to methods, and you can only have one method of the same name in the same package.

    2 & 3) It's probably doing some autoloading. Basically, this allows it to make up new names for functions. Not-so-basically, see http://perldoc.perl.org/perlsub.html#Autoloading.

    Moose does not and never ever will do any form of AUTOLOADING.

    -stvn