in reply to Find and Replace multiple values in a file.

Unless your file is really huge, it can be done as simple as this:
use Modern::Perl; use File::Slurp; my $text = read_file( '_G203.xml' ); $text =~ s/XXXGASPOINTIDXXX/656563/gi; $text =~ s/XXXMMREFXXX/62394732472856563/gi; write_file( '_G203.xml', $text );

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James