in reply to Re: Read from and write to file
in thread Read from and write to file
Ummm, shouldn't that be "=~" instead of "=" in the example above? As it stands, it'll always match the if condition, as you're assigning the value of the pattern match to the variable $line. *grin*