Subject: | Can't call method "move" on unblessed reference |
Hi,
I put together basicparser.pl from the manual page for Games::Go::SGF. If the error is in basicparser.pl, I think the manual page should be changed accordingly. Perl v 5.8.5
Program basicparser.pl
---
#!/usr/bin/perl
#
use Games::Go::SGF;
my $sgfdata = "(;B[pd])";
my $sgf = new Games::Go::SGF( $sgfdata );
while ($move = $sgf->move($move_no++)) {
print "$move_no: ".$move->move,"\n";
}
---
Output
---
dan: ~/sgf/tools$ perl -w basicparser.pl
1: pd
Can't call method "move" on unblessed reference at basicparser.pl line 8.
---