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

Re (tilly) 1: rename files in directory with new extenstion

by tilly (Archbishop)
on Aug 09, 2001 at 08:42 UTC ( [id://103332]=note: print w/replies, xml ) Need Help??


in reply to rename files in directory with new extenstion

And what if you have a file named, "old.old"?

On older Perl's, what if your directory exceeds the limit of the shell?

And before using glob freely, I like worrying about what happens if someone use a space in a path. I see no reason to open myself up to that.

As you can tell, I like to be the kind of person who anticipates potential problems and heads them off at the pass. So even though it isn't so short, I tend to use an explicit opendir/readdir/grep solution rather than globbing. YMMV.

  • Comment on Re (tilly) 1: rename files in directory with new extenstion

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-04-26 01:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found