Emeka wrote:
Hello All,
Hello,
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);
}
perldoc perlsub
SYNOPSIS
To declare subroutines:
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 =