Best way to include data/functions from other parts of the source code

Started by StarGeek, September 25, 2023, 03:03:07 PM

Previous topic - Next topic

StarGeek

As an example, in the config file in this post, I copy/pasted the %latConv and %longConv from the XMP.pm file.

What would be the proper way include %latConv and %longConv?
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

Phil Harvey

Sorry for the delay in resonding.

You could include the XMP module:

include Image::ExifTool::XMP;
Then use %Image::ExifTool::XMP::latConv instead of the local %latConv.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

StarGeek

Dang, I had previously asked this exact same question.  I need to update my notes.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).