in reply to Re^4: Regex for matching and appending
in thread Regex for matching and appending

Just out of interest, does __DATA__ act as an "in file" file handler? thanks

Aye, DATA is a file handle that points to where __DATA__ is. See perldata for details.