in reply to / deliminator

you can do @simpsons=split(/\//,$_); The \ will allow you to escape any of the special characters in regexes. For example: . means any character besides \n(newline) basically so if you wanted to see if a filename had a .txt extension you would do this: if($filename=~/\.txt$/){ #searches for .txt the $ matches the end of the string #do something }