Hi Erik,
Your script will copy the tags individually from the
XMP file, but the command line set the value of the
"XMP" tag from the data of the file. ie)
CPAN::Forum
Image-ExifTool - Re: perl syntax to inject external XMP data into image files?