in reply to Re: problems returning from recursive subroutine
in thread problems returning from recursive subroutine

If symlinks must be followed, then still the safest is to use modern technology:
use File::Find; finddepth { wanted => sub { return if /^\./; my $new = lc $_; return if $new eq $_ or -e $new; rename $_, $new or warn "Cannot rename $File::Find::name to $File: +:Find::dir/$new: $!"; }, follow => 1, }, $ARGV[0] || ".";

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.