Error message in Perl... Undefined xxx

Started by sjDelaney, May 07, 2016, 04:53:31 PM

Previous topic - Next topic

sjDelaney

What causes this kind of error.  I assume it's coming from Perl.


Undefined subroutine &main::GetValue called at /Users/sjDelaney/Programming/Read CSV 05.pl line 83.

Hayo Baan

The error is indeed coming from Perl, it indicates the GetValue function has not been defined. It is probably meant to call the exiftool function, but it looks like the code is referring to it incorrectly. Have a look at line 83 of the mentioned file and you should get a hint as to what is wrong.
Hayo Baan – Photography
Web: www.hayobaan.nl

Phil Harvey

You're attempting to call GetValue() without an ExifTool object.  See the examples in the API documentation.

- 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 ($).