develooper Front page | perl.perl5.porters | Postings from April 2010

Re: What is Yada yada used for?

Thread Previous | Thread Next
Ævar Arnfjörð Bjarmason
April 14, 2010 01:29
Re: What is Yada yada used for?
Message ID:
On Wed, Apr 14, 2010 at 08:05, Gabor Szabo <> wrote:
> and then the question.
> I read the docs of the Yada yada operator but from that it is not clear
> to me when should I use it? What can I achieve with it?
> Could someone please explain?

Where you'd previously write:

    sub foo { croak "Subclasses implement me" }

You'd now write:

    sub foo { ... }

Of course in Moose land we'll continue to write roles with:

    requires 'foo';


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About