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

In reply to HTML Crawler by damian

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.