Question
Our servers have an
old version of perl. 5.005_3 to be exact. RcsFile.pm line 148 uses the move function in File::Copy to rename wikitopics, but that function does not exist in my version of perl so the rename fails and the TWiki generates an Internal Server Error.
I've modified the RcsFile.pm code to use 'rename' instead of 'move', which seems to work, but I'm not really sure what benefits move provides over rename (if any). I can't upgrade perl on the box (and the admins won't). So:
- Should I keep my fix?
- Is it dangerous in ways I just don't see?
- Is this a patch-worthy change to the TWiki codebase?
Thanks!
Matt
bockol@fasPLEASENOSPAM.harvard.edu
Environment
--
MattBockol - 16 Apr 2004
Answer
This is kind of odd. File::Copy has a
move function since Perl 5.004. TWiki requires 5.005_3. The rename function is a standard function of Perl and should work just fine for your case.
--
PeterThoeny - 19 Apr 2004
You're absolutely right re: File::Copy. Upon further examination I shouldn't have trusted that just because the perl executable is v5.005_3 that all of the modules are from that distribution as well. I'm slowly being introduced to an organic method of system administration and software installation. Thanks for your help!
--
MattBockol - 19 Apr 2004