in reply to rename and move fail?

Perhaps you might save us the trouble and let Perl explain the problem to you:

# like all good Perl programmers [insert name here] always # tests the return value of functions like open, unlink, # rename etc and includes the error message kindly put by # Perl into $! so the reason for a failure is made # immediately obvious in all its gory diagnostic detail..... rename $old, $new or die "Can't rename Perl say reason $!\n";

Permission or path if you want the short answer. $! if you want the exact details.

cheers

tachyon

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

Replies are listed 'Best First'.
Re: Re: rename and move fail?
by Smaug (Pilgrim) on Oct 01, 2003 at 08:44 UTC
    Ah ha!!
    'Access Denied'

    Thanks tachyon!