10 sub ${1:function_name} {
18 # Conditional if..else
25 # Conditional if..elsif..else
34 # Conditional One-line
36 ${1:expression} if ${2:condition};${3}
42 # Unless conditional One-line
44 ${1:expression} unless ${2:condition};${3}
48 ${1:# do something risky...}
51 ${2:# handle failure...}
60 ${1:expression} while ${2:condition};${3}
63 for (my $${2:var} = 0; $$2 < ${1:count}; $$2${3:++}) {
68 foreach my $${1:x} (@${2:array}) {
71 # Foreach Loop One-line
73 ${1:expression} foreach @${2:array};${3}
76 package ${1:ClassName};
78 use base qw(${2:ParentClass});
82 $class = ref $class if ref $class;
83 my $self = bless {}, $class;
91 { local $/ = undef; local *FILE; open FILE, "<${2:file}"; $$1 = <FILE>; close FILE }${3}