in reply to Can't call method on undefined value

I have no experience with any of the AI modules, but have you tried
my $som = AI::NeuralNet::Kohonen->new( ... ) || die "could not instani +ate AI: $!\n";

If an object is not defined after trying to instantiate it, it usually means the instantiation of that object failed. Examine why.

Ivan Heffner
Sr. Software Engineer
WhitePages.com, Inc.