in reply to Matching character
$string = 'abcd\\'; print "Matched\n" if '\\' eq substr $string, -1; [download]