Hi guys
I need to bypass a set of file with certain extension. Iam having those extension in a String file.
$exten=|\.txt|\.doc|\.xml...I am trying to do the following
if($filename=~/$exten/i) { print "Not bypassed"; }
but $exten is taken as a String variable rather than a regular expression how can i solve this problem.
In reply to how to get the String as regularexpression by arunmep
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |