Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: copy and update through perl

by prashantktyagi (Scribe)
on Sep 15, 2012 at 10:35 UTC ( #993863=note: print w/ replies, xml ) Need Help??


in reply to copy and update through perl

Please read Writeup Formatting Tips.
You can read files in a directory like this ..

@files = <path>; foreach $file (@files) { print $file . "\n"; if ( $file =~ /*\.txt/) { #add to table #copy file }
Not tested
Please search nodes before posting a query. copy files from one directory to another.

The script would update this variable value in a table.
which type of table (database ot text) ?


Comment on Re: copy and update through perl
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://993863]
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: (6)
As of 2014-11-22 15:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (123 votes), past polls