- or download this
sub find_hash_core {
my $dir = './';
...
if ( m/1234yourhashvalue/ ) {
print "found hash";
}
- or download this
my @files = grep { -f $_ && m/1234yourhashvalue/ } readdir $dirh;
- or download this
chdir $dir;
my @files = glob( "*.1234yourhashvalue" );
- or download this
my @files = qx{ find $dir -maxdepth 1 -type f -name "*.1234yourhashval
+ue" };