Created perl script to query oracle db to get directory path and file name. The script will form an UNC path to copy file to appropriate directory via a while statement and foreach loop. Script works just fine which copies one file at a time. I think it would be more efficient if I can identify if I had multiple files that go to same directory, which would be the case 99.9% of the time. Sometimes I would have 1000+ files that need to copy to one directory (dir1) and maybe 200 files to another directory (dir2) and maybe 100 files to another directory (dir3) in one instance.
I query the db, use a fetchrow_array in a while statement that strips off one row at a time.
How can I filter the recordset to get the files for dir1, dir2 or dir3?
I query the db, use a fetchrow_array in a while statement that strips off one row at a time.
How can I filter the recordset to get the files for dir1, dir2 or dir3?
Comment