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