I'm trying to change the directory path as shown in the code, but it just wont work. What am I doing wrong?
I'm expecting $fulltitle
to be \\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");