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.