Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

replacing a perl module

Status
Not open for further replies.

miekgln

Programmer
May 27, 2005
7
GB
i'm pretty new to using perl background in java.
this question relates to a previous question i posted.

i made some change to a perl module file and the code was generating internal server errors on my web site

after this i tried to restore the old version by replacing the perl module file i'd copied by deleting it and copying a backup of the file (from before any changes were made) to the directory that had contained the perl module i'd edited.

this did not resolve the problem. the perl module has read and execute permissions for all users. and in the error logs i get a 'not an array ref error' and a 'script not found or unable to start error'.

do i have to to somehow reinstall the module? i thought perl was just interpreted when its run and i would just have to put the file in the directory again to make it work.

the perl modules for the web application are in their own directory (/webpp/lib) not in the same directory as perl if this is relevant.

thanks for any help
mike
 
Running what do you get these errors?
If it is a scrpt that produces these errors then post your code.


``The wise man doesn't give the right answers,
he poses the right questions.''
TIMTOWTDI
 
the errors occur when i access several of the pages in a web application (run on apache using mod_perl).

pages in the app are pulled from a database and are written in xml.

i made changes to a perl module file containing functions which can be called from the xml pages in the application like getUserName, getUserEmail.

i added 1 new function and the errors stared so i copied the backup i had made of the perl module i had made over the file i had changed thinking that this would just restore the original working code but the errors remained.
i dont have any code to post as I have no idea where the problem is now.

this is why i want to know if I could have caused this by replacing a perl module file with an old version of itself just by copying it over the file i had changed or do i have to somehow install the replacement module (even if it is a copy of the original made before i carried out any changes)

i havent made any changes to any of the config files for the server or the application and am at a loss as to what to try next to remedy the problem
 
Also, did you restart your web server after restored the original script?

--
Andy
"Historically speaking, the presence of wheels in Unix has never precluded their reinvention." -- Larry Wall
 
yep, tried restaing the web server after restoring the file.
it's looking more likely now that the problem was elsewhere and only showed up after restarting the server
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top