use parent in place of "base"
This commit is contained in:
parent
af9f42c539
commit
7265bcb5c1
@ -65,7 +65,7 @@ endsnippet
|
|||||||
snippet class "class"
|
snippet class "class"
|
||||||
package ${1:ClassName};
|
package ${1:ClassName};
|
||||||
|
|
||||||
${2:use base qw(${3:ParentClass});}${2/.+/\n\n/}sub new {
|
${2:use parent qw(${3:ParentClass});}${2/.+/\n\n/}sub new {
|
||||||
my $class = shift;
|
my $class = shift;
|
||||||
$class = ref $class if ref $class;
|
$class = ref $class if ref $class;
|
||||||
my $self = bless {}, $class;
|
my $self = bless {}, $class;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user