Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^5: Renaming files in dir

by larus (Acolyte)
on Mar 19, 2009 at 10:56 UTC ( #751671=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Renaming files in dir
in thread Renaming files in dir

Oh yes, I found it:

foreach my $file (@fileet) { my $newfile = $file; $newfile =~ s/ä//g; $newfile =~ s/ö//g; move("$path/$file", "$path/$newfile"); }
The error was here
move("$path/$file", "$path/$newfile");


Comment on Re^5: Renaming files in dir
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (10)
As of 2014-08-28 01:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (255 votes), past polls