The problem with the original, as you posted it, is that all the backslashes have been doubled. Change all occurances of '\\' into '\', and it works fine.
The downloadable code from O'Reilly does not have the doubled backslashes, (and neither does the copy of the page at Google Books), but it is missing a trailing semi-colon from the $LIST_DIR line.
In the tarball, the path is perl_hacks_examples/productivity_hacks/autocomplete_perl_identifiers_in_vim/find_pm_files.pl.
In reply to Re: while following perl hack book
by Util
in thread while following perl hack book
by convenientstore
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |