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.
In reply to Re: s/this/$that/ Gives Variable Name, Not Contents of Variable
by Marshall
in thread s/this/$that/ Gives Variable Name, Not Contents of Variable
by itisrich
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |