Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: rename directories

by ashok (Sexton)
on Dec 14, 2000 at 04:21 UTC ( [id://46527]=note: print w/replies, xml ) Need Help??


in reply to Re: rename directories
in thread rename directories

Great. It works for me. A minor change I have made. Since $new_name is not declared , it is warning me. Hence I have replaced $new_name to $_ and works. Thanks a lot. One more help. I am new to perl. Can I know what it means of the code?
return unless / /;
Thanks again. Ashok

Replies are listed 'Best First'.
Re: Re: Re: rename directories
by ichimunki (Priest) on Dec 14, 2000 at 04:39 UTC
    It's a regex checking for a space in the name, without which you have no reason to continue the sub.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-16 16:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found