I would take a compled regular expression, so that the caller can pass whatever flags he wishes for (`/misx`).

Therefore, I'd call this like:

```perl
$fh->get_all_positions(qr{foo bar$}is, IO_SEEK_BEGIN)
```

(... or `/im`, or whatever).