emacs-prelude/vendor/yasnippet/snippets/perl-mode/eval

9 lines
138 B
Text
Raw Normal View History

2012-02-17 22:12:32 +02:00
# name: eval { ... } if ($@) { ... }
# key: eval
# --
eval {
${1:# do something risky...}
};
if (\$@) {
${2:# handle failure...}
}