> > my ($lang) = $topdir =~ m~([^/]+)$~; > > -- I have never seen the expression m~ or $~ Will you tell me what this is and what is says?
m~foobar$~ is the same as, m/foobar$/ here m~ and $~ are not special operators or variables at all,just the board-symbol for regex.:)