# Failed test 'error intended, 'Java point' used' # died: Undefined subroutine &main::hasText called
This error may occur when you copy a code snippet from the Java documentation and forget to change it into Perl syntax. Change the 'point' of Java into the 'arrow' of Perl.
lives_ok { my $pdfUnderTest = "$resources_dir/helloworld.pdf"; AssertThat->document($pdfUnderTest) .hasText() # syntax error, don't use a 'point' here ; } "typical error, 'Java point' used";