Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: specifying file extension in opendir function

by Tanktalus (Canon)
on Nov 16, 2006 at 16:18 UTC ( #584500=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://584500]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2019-06-25 05:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Is there a future for codeless software?



    Results (101 votes). Check out past polls.

    Notices?