ExifTool Forum

ExifTool => The Image::ExifTool API => Topic started by: sjDelaney on May 07, 2016, 04:53:31 PM

Title: Error message in Perl... Undefined xxx
Post by: sjDelaney on May 07, 2016, 04:53:31 PM
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.
Title: Re: Error message in Perl... Undefined xxx
Post by: Hayo Baan on May 08, 2016, 03:32:48 AM
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.
Title: Re: Error message in Perl... Undefined xxx
Post by: Phil Harvey on May 08, 2016, 08:09:15 PM
You're attempting to call GetValue() without an ExifTool object.  See the examples in the API documentation.

- Phil
Title: Re: Error message in Perl... Undefined xxx
Post by: sjDelaney on May 11, 2016, 02:27:41 PM
Thanks.