http://www.perlmonks.org?node_id=1058428


in reply to Use of uninitialized value in subroutine entry at c:/Perl/lib/HTML/TreeBuilder.pm

I can't check further because the formatting of the code is so bad but adding square brackets seems to get rid of most of the problems.

Like this my @trips = $p->findnodes('//div[@class="info-cruise"]');

Instead of this my @trips = $p->findnodes('//div@class="info-cruise"');