use warnings; use strict; my $path = q('/abc/dead/apple'); print "$path\n"; $path =~ s/'//g; print "$path\n";