Gossamer Forum
Home : Products : DBMan : Customization :

syntax question

Quote Reply
syntax question
      next if ($file =~ /^index/); # Skip index.htm type files..
how would i change the above line if i wanted to match index and continue instead of skipping index? in otherwords, the only file i want to see is index.html or index.shtml etc. if a file has any other name, skip that file and continue reading directory. tia!
Quote Reply
Re: [delicia] syntax question In reply to
This may work..

next if ($file !~ /^index/i); # Skip everything except index.htm or Index.htm type files.. i is for case incensitive matching


chmod