I have file named 'testfile.class'.
I need to find all related files of testfile.class with a $ sign in between in a directory. Eg: te$stfile.class or t$stfile.class or testfi$le.class in a directory, and here the '$ can come anywhere.
I know that I can use the Find:file package like this
$file = "testfile.class";
find( sub { /$file/ && print "$File::Find::name\n" },$destDir);
But how can I find file with the $ sign inside?
Can we do with a regexp?