damian has asked for the wisdom of the Perl Monks concerning the following question:
i am saving the directories into an array. is there a way to shorten this one? thanks$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');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HTML Crawler
by chromatic (Archbishop) on Aug 11, 2000 at 08:16 UTC | |
|
RE: HTML Crawler
by t0mas (Priest) on Aug 11, 2000 at 12:13 UTC | |
|
Re: HTML Crawler
by eak (Monk) on Aug 11, 2000 at 08:32 UTC | |
|
Re: HTML Crawler
by eak (Monk) on Aug 11, 2000 at 08:32 UTC | |
by damian (Beadle) on Aug 11, 2000 at 09:33 UTC |