If you need to escape ` (backtick) in Markdown, in a code example
`code example`
You simply add additional backticks to your markup.
``this is a backtick: ` ``
You can do this by indenting with spaces and fence it with a code fence with Markdown as language.
```markdown
```perl
CODE
```
```
The above should render:
```perl
CODE
```
I am not sure the Markdown indicator is needed. This works for GitHub flavoured Markdown it seems.
You can also escape code fences with 3 sequential tildes
~~~
Or four backticks:
````
````
```perl
CODE
```
````
The above should render:
```perl
CODE
```