Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Fileopening question

by tirwhan (Abbot)
on Apr 03, 2006 at 09:56 UTC ( #540889=note: print w/replies, xml ) Need Help??


in reply to Fileopening question

planetscape gave the complete answer, here's a simpler option without recursiveness, using glob:

for my $filename (glob("*.txt")) { next if (!-f $filename); open(my $fh,"<",$filename) or die "Can't open $filename for reading" +; #...process file }

All dogma is stupid.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2022-01-17 03:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (51 votes). Check out past polls.

    Notices?