in reply to Re^4: How to read a file containing filenames and pass as input to perl script?
in thread How to read a file containing filenames and pass as input to perl script?

$xmlfile =~ 's/^/XML|/' ;

Omit the quotes:

$xmlfile =~ s/^/XML|/;