summaryrefslogblamecommitdiffstats
path: root/emacs.d/snippets/text-mode/perl-mode/eval
blob: c1f1e1b7d114406ac46c4c700aefb82926ff8887 (plain) (tree)
1
2
3
4
5
6
7
8







                                    
#name : eval { ... } if ($@) { ... }
# --
eval {
    ${1:# do something risky...}
};
if (\$@) {
    ${2:# handle failure...}
}