Advertisement

04.03.2008 at 07:51AM PDT, ID: 23292994
[x]
Attachment Details

check on the number of files in directory using Perl

Asked by saibsk in Perl Programming Language

I need to look for files in a directory such that each customer Id is associated with 8 files.
say e.g
Abal101.dat
Abtb101.dat
Acpn101.dat
Aftb101.dat
Aftbf101.dat
Amg101.dat
Apost101.dat
Atrd101.dat

Now I need to check if all the 8 files exist for the particular customer id. Else I need to print an error saying which of the file is missing. Please advise.
Start Free Trial
[+][-]04.03.2008 at 08:41AM PDT, ID: 21273780

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.03.2008 at 09:08AM PDT, ID: 21274032

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.03.2008 at 09:52AM PDT, ID: 21274513

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Perl Programming Language
Sign Up Now!
Solution Provided By: Adam314
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628