我对此感到很生气,我正在尝试更改代码中显示的目录路径,但它不起作用,我做错了什么?
我期待$fulltitle
成为\\mynas\data\music\FABRICLive\17 - Rhodes For D - Furney.mp3
my $find = 'C:\Users\Bell';
my $replace = '\\mynas\data\music';
my $fulltitle = 'C:\Users\Bell\FABRICLive\17 - Rhodes For D - Furney.mp3';
$fulltitle =~ s/$find/$replace/;
print ("$fulltitle\n");