Hello All,

What is the purpose of colon here ?

sub pop : method {
    my $self = shift;
    my ($list) = $self->_prepare(@_);

    pop @$list;
    my $result = $list;

    return $self->_finalize($result);
}
Is this how to do function alias?

sub sortBy {&sort_by} #

sub sort_by {
    my $self = shift;
    my ($list, $iterator, $context) = $self->_prepare(@_);

    my $result = [sort { $a cmp $iterator->($b) } @$list];

    return $self->_finalize($result);
}



-- 
*Satajanus  Nig. Ltd


*

Reply via email to