Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: How to prefix a string to all the files in a directories as well subdirectories

by Anonymous Monk
on Dec 29, 2008 at 11:05 UTC ( #733001=note: print w/replies, xml ) Need Help??


in reply to How to prefix a string to all the files in a directories as well subdirectories

opendir is not open, you cannot write to dirhandle
my $newname = "reference_".$filename ; if(not rename $filename, $newname ){ warn "Error renaming $filename to $newname : $!"; }
  • Comment on Re: How to prefix a string to all the files in a directories as well subdirectories
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://733001]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2017-12-16 13:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (453 votes). Check out past polls.

    Notices?