
jr
Novice
Apr 26, 2000, 8:39 AM
Post #1 of 2
(237 views)
|
|
Matching Splits
|
Can't Post
|
|
I have a small program that stores information into certain folders based upon: <BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR> %elements = ( 1_main => '1main', 1_1sub => '1_1sub', 1_2sub => '1_2sub', 1_3sub => '1_3sub', 1_4sub => '1_4sub', ); </pre><HR></BLOCKQUOTE> the '_main' predicates that this is the main folder. 1_main is the name of the folder, so anything beginning with 1_ is grouped with 1_main beneath it. I can then run another script which reads through and spits out all of the files within the sub categories of 1_main, per category. However, I cannot get it to list ALL of the files within every single 1_main subfile. Example, when I go to read 1_main, I want to read every single entry in all of the categories beneath 1_main, instead of listing the sub-categories, then going to that sub-category and THEN getting a list of all the files in ONLY that sub-category... I've been playing with the split function so that I can just get 1_ from the $key and match any files beginning with 1_ and spit those out, but I must be missing something... Any ideas?
|