Milleniumlegend
IS-IT--Management
- Dec 16, 2003
- 135
This issue is in addition to the thread thread219-1076991.
I am not able to find out what is happening here. Could someone please shed some light on this.
I have three types of files as shown as discussed in previous issue.
This is the first statement in the unless loop. I am assuming this matches the pattern where the file is of type
XXX-_TROFIES---_20051105_1104-105027-LIPS-001_USERM-----_001.RPT.
There is another variation here for the same file.
XXX-_NUMBERS---_20050305_153604_ISSUED_XXX_00003109.csv
Also there is another file type
XXX-_DISP-HEPL-_20050428_DISBURSEMENT422-----_USERV-----_030.RPT.gz
I need to find out how the logic fits in for the above three file types. Also I wanted to know if the unless statement does check the statement and continues if it does not match.
Many thanks
Many thanks
I am not able to find out what is happening here. Could someone please shed some light on this.
I have three types of files as shown as discussed in previous issue.
This is the first statement in the unless loop. I am assuming this matches the pattern where the file is of type
XXX-_TROFIES---_20051105_1104-105027-LIPS-001_USERM-----_001.RPT.
Code:
Type=1
unless ($basename =~ /^(.{4})_(.{10})_(.{8})_(.{6})_(.{10}) _(.{8})\.(.{3})\.gz$/)
There is another variation here for the same file.
XXX-_NUMBERS---_20050305_153604_ISSUED_XXX_00003109.csv
Code:
unless($basename =~ /^(.{4})_(.{10})_(.{8})_(.{20})_(.{10})_(.{3})\.(.{3})\.gz$/)
Also there is another file type
XXX-_DISP-HEPL-_20050428_DISBURSEMENT422-----_USERV-----_030.RPT.gz
Code:
unless($basename =~ /^(.{4})_(.{10})_(.{8})_(.{20})_(.{10})_(.{3})\.(.{3})/)
I need to find out how the logic fits in for the above three file types. Also I wanted to know if the unless statement does check the statement and continues if it does not match.
Many thanks
Many thanks