my-emacs-d/elpa/yasnippet-20160924.2001/snippets/perl-mode/eval
2016-10-20 10:27:10 +02:00

9 lines
138 B
Plaintext

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