[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Omaha.pm] Perl syntax on it's head #2



I'm playing with POE for the first time. It does stuff like this:

sub accept_handler {
    my ($socket, $remote_address, $remote_port) = @_[ARG0, ARG1, ARG2];
  }

Which is explained here:

http://poe.perl.org/?POE_FAQ/calling_convention

This is the second time this year I've had the Perl syntax part of my brain jolted. The first time was Catalyst, which does this:

sub end : ActionClass('RenderView') {}

Which is explained here:

http://www.perlmonks.org/?node_id=631931

Building new synapses,    :)

j