If I'm guessing your intentions correctly, you have some basic problems with your print statments. First, it looks like your print statements are trying to concatenate strings inside the quotation marks. This won't work. Your print statement should be something like this:
print "***rename $dir/$file", "$dir/$prefix$suffix\n"
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks
In reply to Re: renaming the file using perl
by nysus
in thread renaming the file using perl
by finddata
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |