Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: trying to rename files

by bigmacbear (Monk)
on Jun 09, 2006 at 20:45 UTC ( [id://554551]=note: print w/replies, xml ) Need Help??


in reply to trying to rename files

Looks like you're missing a couple of things here.

  1. You open a file for writing (">List_of_files_changed.txt") and then never use the associated file handle. Perhaps you intended to redirect one of your print statements using print FILES ..., but didn't.
  2. Within a for loop, if you specify a variable to be filled (as you do by specifying for my $file), $_ doesn't get filled in. Either use $file or $_, not both.

Hope this helps.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-25 05:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found