# メタ文字をエスケープしないまま正規表現にかけると地味にハマるので。。。
# メタ文字をエスケープする :
my $path = qq(C:\\hogehoge\\hoge.dll);
# (1) エスケープシーケンス \Q ... \E 使用
print qq(\Q$path\E);
# > C\:\\hogehoge\\hoge\.dll
# (2) 関数 quotemeta 使用
print quotemeta $path;
# > C\:\\hogehoge\\hoge\.dll
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme