hi fella monks,
i want to create a program that would crawl through directories and print the html files
depending on the pattern i am looking for.
what i have done is like this:
$basedir = "/usr/local/apache/htdocs/";
@htmlfiles = ('*.html','aboutus/*.html','abuse/*.html','abuse/email-au
+p/*.html','abuse/news-aup/*.html','admin/*.html',
'admin/emailpass/*.html','admin/loginpass/*.html','adm
+in/webpass/*.html','contact/*.html','customer/*.html',
'customer/account/*.html','customer/account/changepack
+age/*.html','customer/account/changeuserid/*.html',
'customer/account/suspend/*.html','customer/account/te
+rminate/*.html','customer/account/updateinfo/*.html',
'customer/billing/*.html','customer/billing/billingcyc
+le/*.html','customer/billing/bpiexpress/*.html',
'customer/billing/faq/*.html','customer/billing/paymen
+t/*.html','customer/billing/statement/*.html',
'customer/email/*.html','customer/usage/*.html','downl
+oad/*.html','exclusives/*.html','exclusives/loyalty/*.html',
'exclusives/megamall/*.html','exclusives/prepay/*.html
+','news/*.html','news/intl/*.html','products/*.html',
'products/business/*.html','products/corporate/*.html'
+,'products/corporate/dedicated-dial/*.html',
'products/corporate/isdn/*.html','products/corporate/l
+eased_line/*.html','products/corporate/multi-user/*.html',
'products/dealers/*.html','products/individual/*.html'
+,'products/roaming/*.html','products/websolutions/*.html',
'products/websolutions/colocation/*.html','products/we
+bsolutions/webhosting/*.html','search/imagesearch/*.html',
'search/lyricssearch/*.html','search/mp3search/*.html'
+,'search/newssearch/*.html','search/peoplesearch/*.html');
i am saving the directories into an array. is there a way to shorten this one?
thanks