>Is there a better way to do a line by line substitution instead of looping >through @Keys each line? >Robert Something like : $/ = ""; my $foo = <TemplateIn>; foreach (keys %ConfigOptions){$foo =~ s|$_|$ConfigOptions{$_}|gis}; may do the job. -- Cogito Ergo Disclaimo : I am speaking for myself, not my employer.