Re: I am going through github perl code

2011-08-11 Thread John W. Krahn
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:

I am going through github perl code

2011-08-11 Thread Emeka
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 =