in reply to Re^2: problem opening file
in thread problem opening file

And if you had warnings enabled you would have got warnings about unrecognized escapes. Putting them in I got these messages:

Unrecognized escape \H passed through at Perl-1.pl line 22. Unrecognized escape \P passed through at Perl-1.pl line 22.
It is considered good practice to start each script with
use warnings; use strict;
which will pick up a lot of these types of problems.