PM is not a script writing service.
If you've "not done anytime before" and you "need to write a script," you need to...
- study Perl (perhaps an online tut; perhaps buy and read "Learning Perl") until you know at least enough to try to write your script
or...
- hire a programmer.
Since we're here to help people learn, the first is an excellent option, unless you need the script yesterday (or "tomorrow")... in which case, you'd do well to check out the sites advertising programmers-for-hire.
| [reply] |
@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) ?
| [reply] [d/l] |