Thank you for the reply. I tried this:
#!/usr/bin/perl -w use strict; use warnings; use File::Find; use Cwd; my $dir = getcwd; my %hashTS; find(&wantedTS, "$dir"); sub wantedTS() { if ($File::Find::name =~ /(.*)(\.ts)(\.txt)$/) { $hashTS{$File::Find::name}++; } }
to place text files ending with .ts.txt into my hash, but it doesn't work because "Use of uninitialized value $File::Find::name"
In reply to Re^2: Using File::Find
by Dr Manhattan
in thread Using File::Find
by Dr Manhattan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |