<?xml version="1.0" encoding="UTF-8"?> <snippets language="Perl"> <snippet id="perl"> <text><![CDATA[#!/usr/bin/perl $0]]></text> <tag>perl</tag> <description>#!/usr/bin/perl</description> </snippet> <snippet id="ife"> <text><![CDATA[if ($1) { ${2:# body...} } else { ${3:# else...} } ]]></text> <description>Conditional if..else</description> <tag>ife</tag> </snippet> <snippet id="ifee"> <text><![CDATA[if ($1) { ${2:# body...} } elsif ($3) { ${4:# elsif...} } else { ${5:# else...} } ]]></text> <description>Conditional if..elsif..else</description> <tag>ifee</tag> </snippet> <snippet id="xunless"> <text><![CDATA[${1:expression} unless ${2:condition}; ]]></text> <description>Conditional one-line</description> <tag>xunless</tag> </snippet> <snippet id="xif"> <text><![CDATA[${1:expression} if ${2:condition}; ]]></text> <description>Conditional one-line</description> <tag>xif</tag> </snippet> <snippet id="eval"> <text><![CDATA[eval { ${1:# do something risky...} }; if ($@) { ${2:# handle failure...} } ]]></text> <description>Try/Except</description> <tag>eval</tag> </snippet> <snippet id="fore"> <text><![CDATA[foreach ${1:my $${2:x} }(@${3:array}) { ${4:# body...} } ]]></text> <description>Loop</description> <tag>fore</tag> </snippet> <snippet id="for"> <text><![CDATA[for (my $${1:var} = 0; $$1 < ${2:expression}; $$1++) { ${3:# body...} } ]]></text> <description>Loop</description> <tag>for</tag> </snippet> <snippet id="sub"> <text><![CDATA[sub ${1:function_name} { ${2:# body...} } ]]></text> <description>Function</description> <tag>sub</tag> </snippet> <snippet id="hashpointer"> <text><![CDATA[ => ]]></text> <accelerator><![CDATA[<Shift><Alt>l]]></accelerator> <description>hash pointer</description> </snippet> <snippet id="if"> <text><![CDATA[if ($1) { ${2:# body...} } ]]></text> <description>Conditional</description> <tag>if</tag> </snippet> <snippet id="xfore"> <text><![CDATA[${1:expression} foreach @${2:array}; ]]></text> <description>Loop one-line</description> <tag>xfore</tag> </snippet> <snippet id="xwhile"> <text><![CDATA[${1:expression} while ${2:condition}; ]]></text> <description>Loop one-line</description> <tag>xwhile</tag> </snippet> <snippet id="slurp"> <text><![CDATA[my $${1:var}; { local $/ = undef; local *FILE; open FILE, "<${2:file}"; $$1 = <FILE>; close FILE } ]]></text> <description>Read File</description> <tag>slurp</tag> </snippet> <snippet id="unless"> <text><![CDATA[unless ($1) { ${2:# body...} } ]]></text> <description>Conditional</description> <tag>unless</tag> </snippet> <snippet id="while"> <text><![CDATA[while ($1) { ${2:# body...} } ]]></text> <description>Loop</description> <tag>while</tag> </snippet> </snippets>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
lang | Folder | 0755 |
|
|
ui | Folder | 0755 |
|
|
c.xml | File | 7.19 KB | 0644 |
|
chdr.xml | File | 6.8 KB | 0644 |
|
cpp.xml | File | 4.93 KB | 0644 |
|
css.xml | File | 17.52 KB | 0644 |
|
docbook.xml | File | 73.45 KB | 0644 |
|
fortran.xml | File | 4.09 KB | 0644 |
|
global.xml | File | 51 B | 0644 |
|
haskell.xml | File | 367 B | 0644 |
|
html.xml | File | 7.68 KB | 0644 |
|
idl.xml | File | 992 B | 0644 |
|
java.xml | File | 1.9 KB | 0644 |
|
javascript.xml | File | 255 B | 0644 |
|
latex.xml | File | 1.1 KB | 0644 |
|
mallard.xml | File | 7.94 KB | 0644 |
|
markdown.xml | File | 2.29 KB | 0644 |
|
perl.xml | File | 2.88 KB | 0644 |
|
php.xml | File | 4.79 KB | 0644 |
|
python.xml | File | 2.79 KB | 0644 |
|
rpmspec.xml | File | 625 B | 0644 |
|
ruby.xml | File | 4.33 KB | 0644 |
|
sh.xml | File | 1.01 KB | 0644 |
|
snippets.xml | File | 3.51 KB | 0644 |
|
tcl.xml | File | 1.08 KB | 0644 |
|
xml.xml | File | 690 B | 0644 |
|
xslt.xml | File | 3.5 KB | 0644 |
|