Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Renaming non-ascii files

by davidj (Priest)
on Jun 01, 2005 at 11:41 UTC ( #462394=note: print w/replies, xml ) Need Help??


in reply to Renaming non-ascii files

First of all, your code doesn't even compile. There are two errors:
elsif($myfile =~ m/[\? ]+(\([0-9]+\))?\.(\w+)\i)
needs to be changed to
elsif($myfile =~ m/[\? ]+(\([0-9]+\))?\.(\w+)/i)
and
$newname = join "." $temp, $ext;
needs to be changed to
$newname = join ".", $temp, $ext;
At that point it will compile. Please post the code you are actually using.
davidj

Replies are listed 'Best First'.
    A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://462394]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2019-04-24 13:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I am most likely to install a new module from CPAN if:
















    Results (122 votes). Check out past polls.

    Notices?