I don't think that copy/pasting directly from docs into a file and expecting a shebang to allow for command line execution is a common practice.
@@ -47,8 +47,6 @@ the following should start up Firefox for you:
#### Locally
```perl
-#!/bin/env perl
-
use strict;
use warnings;
use Selenium::Remote::Driver;
@@ -191,7 +191,6 @@ mock responses to specific functions
=head2 Record interactions
- #!/bin/env perl