9 lines
138 B
Plaintext
9 lines
138 B
Plaintext
# name: eval { ... } if ($@) { ... }
|
|
# key: eval
|
|
# --
|
|
eval {
|
|
${1:# do something risky...}
|
|
};
|
|
if (\$@) {
|
|
${2:# handle failure...}
|
|
} |