10 sub ${1:function_name} {
18 # Conditional if..else
26 # Conditional if..elsif..else
37 # Conditional One-line
39 ${1:expression} if ${2:condition};${3}
45 # Unless conditional One-line
47 ${1:expression} unless ${2:condition};${3}
51 ${1:# do something risky...}
54 ${2:# handle failure...}
63 ${1:expression} while ${2:condition};${3}
66 for (my $${2:var} = 0; $$2 < ${1:count}; $$2${3:++}) {
71 ${1:expression} for @${2:array};${3}
74 foreach my $${1:x} (@${2:array}) {
77 # Foreach Loop One-line
79 ${1:expression} foreach @${2:array};${3}
82 package ${1:ClassName};
84 use base qw(${2:ParentClass});
88 $class = ref $class if ref $class;
89 my $self = bless {}, $class;
97 { local $/ = undef; local *FILE; open FILE, "<${2:file}"; $$1 = <FILE>; close FILE }${3}