Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Need Urgent help in perl

by zwon (Abbot)
on Jul 15, 2015 at 20:27 UTC ( #1134954=note: print w/replies, xml ) Need Help??


in reply to Need Urgent help in perl

I'd recommend Path::Tiny for dealing with files
use Path::Tiny; my $dir = path('/tmp/bkp'); for my $file ($dir->children(qr/\.gz$/)) { say $file; if ($file->exists) { ... } }

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2020-06-02 18:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (19 votes). Check out past polls.

    Notices?