in reply to filenames with ’

is that a ` (`) or a ' (') ...

try something like this..

$test = q("`'); # double-quote left-single-quote plain-single-quote # i'm not even sure what left/right-double-quote or # right-single-quote would be on my keyboard =( $inhex = unpack 'H*', $test; @hexcodes = $inhex =~ m/(..)/g; print "@hexcodes", $/; # prints 22 60 27 # now i can s// with the hex representation of the character. $test =~ s/\x60//g; # remove any ` characters (hex 60) print $test, $/; # prints "'