in reply to s/this/$that/ Gives Variable Name, Not Contents of Variable

I've seen the other Monks post's on this. I can't see how to replicate your problem either.

I would suggest that you get to the basics. Forget this file I/O stuff and just get to some simple example of the substitution involved. That may help you figure this out yourself. Of course the standard advice of "use strict; use warnings;" is often helpful.

  • Comment on Re: s/this/$that/ Gives Variable Name, Not Contents of Variable