in reply to Changing a variable in perl module

Welcome to Perl Monks!

It seems like you are trying to do a search and replace in the file? Was that the goal?

I think it would help a lot if you posted the code you used when you "tried using methods it changes in the runtime.". Without knowing exactly what you did, it is next to impossible for us to suggest what you might be able to do better.

Best, beth

P.S. There are a lot of great tips on how to write a successful question in this article: How (Not) To Ask A Question.