CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Matching Splits

 



jr
Novice

Apr 26, 2000, 8:39 AM

Post #1 of 2 (298 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?


Peter Van Hoecke
Deleted

Apr 27, 2000, 12:56 AM

Post #2 of 2 (298 views)
Re: Matching Splits [In reply to] Can't Post

Could you mail me/post the test script, so we can fully understand the problem and play a bit with it?

Peter.Van_Hoecke@ecom.be

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives