so perhaps the test should be
The test as written is fine - if there is a 'HEAD' file, it looks in it for the string 'lwp-request'. If it finds such a string, it defaults to 'y', as the file is probably a symlink that was installed by an older version of LWP, and should be updated. Otherwise it defaults to 'n'.
The problem is, as Ken pointed out - and submitted a patch to correct (thanks Ken) - that the test looks in the wrong directory for the file.
sherm--
Each language has its purpose, however humble. Each language expresses the Yin and Yang of software. Each language has its place within the Tao.
But do not program in COBOL if you can avoid it.
-- The Tao of Programming