Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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
Domain Nodelet?
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 contemplating the Monastery: (2)
As of 2021-09-20 06:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?