"The operators `=~' and `!~' are like `!=' and `==' except that the right hand side is a glob-pattern (see Filename substitution)" I'd suggest swapping the order of the '!=' and '==' in the above line, because as it stands, the implication is the wrong way around. Cheers, Jamie