in reply to
compare contents of 2 file having wildcards
One issue: The \Q...\E is preventing the contents of $x from being interpreted as a regex. See
quotemeta
and
Mind the meta!
Comment on
Re: compare contents of 2 file having wildcards
In Section
Seekers of Perl Wisdom