in reply to Re: specifying file extension in opendir function
in thread specifying file extension in opendir function

Please, PLEASE ... just use glob.

/me really wishes perl didn't have the <> construct doing such drastically different things because parsing it right is hard, e.g.

my $wildcard = File::Spec->catfile(File::Spec->rootdir(), qw(apps inst2 metrica), $some_location, qw(backup schema), '*.tdef' ); while (<$wildcard>) { print; }
doesn't work. Change the while to:
for (glob $wildcard) {
and it's fine.