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

Re: Platform-independent copying multiple files

by ambrus (Abbot)
on Oct 18, 2005 at 13:36 UTC ( [id://500975]=note: print w/replies, xml ) Need Help??


in reply to Platform-independent copying multiple files

File::Copy is a core module to copy files.

You can use globs or the File::Glob module to find files matching the glob.

  • Comment on Re: Platform-independent copying multiple files

Replies are listed 'Best First'.
Re^2: Platform-independent copying multiple files
by Ace128 (Hermit) on Oct 18, 2005 at 21:31 UTC
    I've used:
    my @all_matches = glob "*.txt"; my @files = grep {-f} @all_matches;
    for the glob part... :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-04-25 02:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found