Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: renaming files question

by DungeonKeeper (Novice)
on Jan 06, 2006 at 13:56 UTC ( [id://521475]=note: print w/replies, xml ) Need Help??


in reply to renaming files question

It will only complain about multiple files if there are multiple files, in which case you don't want to collapse them into a single file before processing, so perhaps this is what you want:
for my $original ( glob '/path/lbn9*.cnt' ) { rename $original, '/path/lbn9.cnt'; # file processing here... }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-25 14:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found