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?
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

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.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype